result:mapdl material properties
Last update: 31.07.2026Version: 0.0.0
Description
Read the values of the properties of a material for a given materials property field (property field that contains materials information for each element of a mesh).It returns a fields container containing a field for each material property, with only one value per material. The following keys can be used: Young's modulus (keys: EX, EY, EZ), Poisson's ratio (keys: NUXY, NUYZ, NUXZ), Shear Modulus (keys: GXY, GYZ, GXZ), Coefficient of Thermal Expansion (keys: ALPX, ALPY, ALPZ), Volumic Mass (key: DENS), second Lame's coefficient (key: MU), Damping coefficient (key: DAMP), thermal Conductivity (keys: KXX, KYY, KZZ), Resistivity (keys: RSVX, RSVY, RSVZ), Specific heat in constant volume (key: C), Film coefficient (key: HF), Viscosity (key: VISC), Emissivity (key: EMIS).
Inputs
This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.
| Pin number | Name | Status | Expected type(s) |
|---|---|---|---|
| 0 | properties_name | Required | string, vector<string> |
| 1 | materials | Required | property_field |
| 3 | streams_container | Required | streams_container |
| 4 | data_sources | Required | data_sources |
properties_name (Pin 0)
- Required: Yes
- Expected type(s):
string,vector<string>
materials (Pin 1)
- Required: Yes
- Expected type(s):
property_field
Property field that contains a material id per element.
streams_container (Pin 3)
- Required: Yes
- Expected type(s):
streams_container
data_sources (Pin 4)
- Required: Yes
- Expected type(s):
data_sources
Outputs
This table lists the output pins for this operator. Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.
| Pin number | Name | Expected type(s) |
|---|---|---|
| 0 | properties_value | fields_container |
properties_value (Pin 0)
- Expected type(s):
fields_container
Configurations
This operator supports configuration options that modify its behavior.
mutex
- Expected type(s):
bool - Default value: false
If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
Scripting
This operator can be accessed through scripting interfaces using these identifiers.
Category: result
Plugin: mapdl
Scripting name: mapdl_material_properties
Full name: result.mapdl_material_properties
Internal name: mapdl_material_properties
License: None
Examples
These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.
C++
#include "dpf_api.h"
ansys::dpf::Operator op("mapdl_material_properties"); // operator instantiation
op.connect(0, my_properties_name);
op.connect(1, my_materials);
op.connect(3, my_streams_container);
op.connect(4, my_data_sources);
ansys::dpf::FieldsContainer my_properties_value = op.getOutput<ansys::dpf::FieldsContainer>(0);
CPython
import ansys.dpf.core as dpf
op = dpf.operators.result.mapdl_material_properties() # operator instantiation
op.inputs.properties_name.connect(my_properties_name)
op.inputs.materials.connect(my_materials)
op.inputs.streams_container.connect(my_streams_container)
op.inputs.data_sources.connect(my_data_sources)
my_properties_value = op.outputs.properties_value()
IPython
import mech_dpf
import Ans.DataProcessing as dpf
op = dpf.operators.result.mapdl_material_properties() # operator instantiation
op.inputs.properties_name.Connect(my_properties_name)
op.inputs.materials.Connect(my_materials)
op.inputs.streams_container.Connect(my_streams_container)
op.inputs.data_sources.Connect(my_data_sources)
my_properties_value = op.outputs.properties_value.GetData()
Changelog
- Version 0.0.0: Initial release.