.. _user_guide_accessing_file_metadata: ********************** Browse result metadata ********************** 除了 :class:`Simulation ` 对象是浏览结果文件内容的入口外,它还提供了重要的元数据(metadata),如分析类型和可用结果。 以下是浏览结果元数据的方法: .. code:: python # 实例化仿真对象 >>> from ansys.dpf import post >>> from ansys.dpf.post import examples >>> simulation = post.load_simulation(examples.multishells_rst) # 浏览结果元数据 >>> print(simulation) Static Mechanical Simulation. Data Sources ------------------------------ DPF DataSources: Result files: result key: rst and path: d:\ansysdev\sandbox\pydpf-core\src\ansys\dpf\core\examples\model_with_ns.rst Secondary files: DPF Model ------------------------------ Static analysis Unit system: MKS: m, kg, N, s, V, A, degC(摄氏度) Physics Type: Mechanical Available results: - displacement: Nodal Displacement - reaction_force: Nodal Force - stress: ElementalNodal Stress - elemental_volume: Elemental Volume - stiffness_matrix_energy: Elemental Energy-stiffness matrix - artificial_hourglass_energy: Elemental Hourglass Energy - thermal_dissipation_energy: Elemental thermal dissipation energy - kinetic_energy: Elemental Kinetic Energy - co_energy: Elemental co-energy - incremental_energy: Elemental incremental energy - elastic_strain: ElementalNodal Strain - structural_temperature: ElementalNodal Temperature ------------------------------ DPF Meshed Region: 7079 nodes 4220 elements Unit: m With solid (3D) elements, shell (2D) elements, shell (3D) elements ------------------------------ DPF Time/Freq Support: Number of sets: 1 Cumulative Time (s) LoadStep Substep 1 1.000000 1 1 PyDPF-Post 支持四种不同的力学结果分析类型: * Static analysis 静态分析 * Modal analysis 模态分析 * Harmonic analysis 谐波分析 * Transient analysis 瞬态分析 传统 ``Solution`` 对象还支持热力学结果和电学结果。 Mesh ---- 您还可以从 ``Simulation`` 对象访问网格数据: .. code:: python # 实例化仿真对象 >>> from ansys.dpf import post >>> from ansys.dpf.post import examples >>> simulation = post.load_simulation(examples.multishells_rst) # Access the mesh >>> mesh = simulation.mesh >>> print(mesh) DPF Mesh: 7079 nodes 4220 elements Unit: m With solid (3D) elements, shell (2D) elements, shell (3D) elements