From f90be81e3bf59bd3a9f6a3f5283b58be06a500c9 Mon Sep 17 00:00:00 2001 From: Nellie Shum Date: Tue, 17 Sep 2024 14:10:07 -0400 Subject: [PATCH 1/3] revised example 13 doc --- examples/013_thermal_example.py | 44 +++++++++++++++++---------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/examples/013_thermal_example.py b/examples/013_thermal_example.py index 53b98b683..e2e76a2fe 100644 --- a/examples/013_thermal_example.py +++ b/examples/013_thermal_example.py @@ -26,15 +26,17 @@ Thermal analysis ---------------- -PyDPF Composites can also be used to post-process thermal analyses. -In this case, the simulation is a two-step analysis where the results of -a thermal analysis are an input of the structural analysis. So, the RST -contains temperature and structural results. -The example mimics a PCB which was modeled with Ansys Composites PrePost (ACP). -where the solid model feature of ACP is used to generate the volume mesh. +This example shows how to evaluate a thermal analysis. +The simulation is a two-step analysis where the results of +a thermal analysis are an input of the structural analysis. +Therefore, the RST file contains temperature and structural results. -In detail, the example shows how to extract the temperatures for a specific ply, -and a specific material. +The example imitates a printed circuit board (PCB) that was +modeled with Ansys Composites PrepPost (ACP), using the solid model feature to +generate the volume mesh. + +Descriptions of how to extract temperatures for a specific ply +and material are provided. .. note:: @@ -67,22 +69,22 @@ # %% # Initialize the model # ~~~~~~~~~~~~~~~~~~~~ -# The composite model is initialized with the composite files and the server. -# It provides access to the mesh, results, lay-up and materials +# Initialize the composite model with the composite files and server. +# The model provides access to the mesh, results, lay-up, and materials. composite_model = CompositeModel(composite_files, server) # %% -# Get Results - Temperatures -# ~~~~~~~~~~~~~~~~~~~~~~~~~~ -# The temperatures are stored under structural_temperature +# Get temperature results +# ~~~~~~~~~~~~~~~~~~~~~~~ +# The temperatures are stored under ``structural_temperature``. temp_op = composite_model.core_model.results.structural_temperature() temperatures_fc = temp_op.outputs.fields_container() # %% -# Ply-wise results -# ~~~~~~~~~~~~~~~~ -# Ply-wise results can be easily extracted using the function -# :func:`.get_ply_wise_data` and by passing the ply name. +# Get ply results +# ~~~~~~~~~~~~~~~ +# Extract the ply-wise results by passing the ply name +# to the function :func:`.get_ply_wise_data`. all_ply_names = get_all_analysis_ply_names(composite_model.get_mesh()) print(all_ply_names) @@ -99,10 +101,10 @@ composite_model.get_mesh().plot(nodal_values) # %% -# Material-wise results -# ~~~~~~~~~~~~~~~~~~~~~ -# It is also possible to filter the results by material. -# In this example the element-wise maximum temperature +# Get material results +# ~~~~~~~~~~~~~~~~~~~~ +# You can filter the results by material. +# In this example, the element-wise maximum temperature # is extracted for the material `Honeycomb Aluminum Alloy`. print(composite_model.material_names) material_id = composite_model.material_names["Honeycomb Aluminum Alloy"] From 1b505f2e2b2b09762efeae119cf058e5f9a9c264 Mon Sep 17 00:00:00 2001 From: Nellie Shum Date: Tue, 17 Sep 2024 14:30:37 -0400 Subject: [PATCH 2/3] Removed whitespaces --- examples/013_thermal_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/013_thermal_example.py b/examples/013_thermal_example.py index e2e76a2fe..63fbb02de 100644 --- a/examples/013_thermal_example.py +++ b/examples/013_thermal_example.py @@ -31,8 +31,8 @@ a thermal analysis are an input of the structural analysis. Therefore, the RST file contains temperature and structural results. -The example imitates a printed circuit board (PCB) that was -modeled with Ansys Composites PrepPost (ACP), using the solid model feature to +The example imitates a printed circuit board (PCB) that was +modeled with Ansys Composites PrepPost (ACP), using the solid model feature to generate the volume mesh. Descriptions of how to extract temperatures for a specific ply From 43e5bcd307069199bd30e61fe01e90366aef20b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Roos?= <105842014+roosre@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:35:17 +0200 Subject: [PATCH 3/3] Update examples/013_thermal_example.py Co-authored-by: Nellie Shum <133802577+nshum4@users.noreply.github.com> --- examples/013_thermal_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/013_thermal_example.py b/examples/013_thermal_example.py index 63fbb02de..0cbdf0e7f 100644 --- a/examples/013_thermal_example.py +++ b/examples/013_thermal_example.py @@ -27,8 +27,8 @@ ---------------- This example shows how to evaluate a thermal analysis. -The simulation is a two-step analysis where the results of -a thermal analysis are an input of the structural analysis. +The simulation's thermal analysis results are also +the input of a structural analysis. Therefore, the RST file contains temperature and structural results. The example imitates a printed circuit board (PCB) that was