Using two editable material property dataset in cmas2d_customlib.gid example
Posted: Sun Aug 20, 2023 3:43 am
Hi,
Starting from cmas2d_customlib.gid example, I’ve been trying to set up my own problemtype. Here, I revised the preprocess files to accomodate two editable material data sets. In GiD, I can access to and edit the two material data sets but I’m getting some error messages in GiD when moving to Calculate step.
Below is what I changed in the preprocess files.
In the spd file, I put two property sections for the two material data sets. The actual data set is described in separate files (materials.xml and materials_joint.xml).
<!-- solid properties -->
<container n="Properties_solid" pn="Solid properties" icon="darkorange-shellfish-18" help="Define your materials database and apply them to the volumes of your problem">
<condition n="Solids" pn="Solids" ov="volume" ovm="element" ov_element_types="hexahedra" icon="darkorange-shellfish-18" groups_icon="yelowish-group" help="Select your material and the surfaces related to it">
<value n="material" pn="material solid" editable='0' help="Choose a material from the database" values='[Cmas2d::GetMaterialsList %W]' v="Reservoir">
<edit_command n="Edit materials" pn="Edit materials" icon="darkorange-block1.png" proc='Cmas2d::EditDatabaseListDirect %W %DICT %BC'/>
</value>
</condition>
<include path="xml/materials.xml"/>
</container>
<!-- joint properties -->
<container n="Properties_joint" pn="Joint properties" icon="darkorange-shellfish-18" help="Define your materials database and apply them to the volumes of your problem">
<condition n="Joints" pn="Joints" ov="surface" ovm="element" ov_element_types="quadrilateral" icon="darkorange-shellfish-18" groups_icon="yelowish-group" help="Select your material and the surfaces related to it">
<value n="material" pn="material joint" editable='0' help="Choose a material from the database" values='[Cmas2d::GetMaterialsListJoint %W]' v="Joint1">
<edit_command n="Edit materials" pn="Edit materials" icon="darkorange-block1.png" proc='Cmas2d::EditDatabaseListDirectJoint %W %DICT %BC'/>
</value>
</condition>
<include path="xml/materials_joint.xml"/>
</container>
</wFAST_data>
To link to the two datasets, I prepared separate procedures:
Cmas2d::GetMaterialsList and Cmas2d::GetMaterialsListJoint
Cmas2d::EditDatabaseListDirect and Cmas2d::EditDatabaseListDirectJoint.
Attached is a screenshot of the error message. It seems like when writing out the material properties in input file, it encounters an error…
I’ve also attached the problemtype files I prepared. I would really appreciate if you can give me some advice.
Regards,
Kenji
Starting from cmas2d_customlib.gid example, I’ve been trying to set up my own problemtype. Here, I revised the preprocess files to accomodate two editable material data sets. In GiD, I can access to and edit the two material data sets but I’m getting some error messages in GiD when moving to Calculate step.
Below is what I changed in the preprocess files.
In the spd file, I put two property sections for the two material data sets. The actual data set is described in separate files (materials.xml and materials_joint.xml).
<!-- solid properties -->
<container n="Properties_solid" pn="Solid properties" icon="darkorange-shellfish-18" help="Define your materials database and apply them to the volumes of your problem">
<condition n="Solids" pn="Solids" ov="volume" ovm="element" ov_element_types="hexahedra" icon="darkorange-shellfish-18" groups_icon="yelowish-group" help="Select your material and the surfaces related to it">
<value n="material" pn="material solid" editable='0' help="Choose a material from the database" values='[Cmas2d::GetMaterialsList %W]' v="Reservoir">
<edit_command n="Edit materials" pn="Edit materials" icon="darkorange-block1.png" proc='Cmas2d::EditDatabaseListDirect %W %DICT %BC'/>
</value>
</condition>
<include path="xml/materials.xml"/>
</container>
<!-- joint properties -->
<container n="Properties_joint" pn="Joint properties" icon="darkorange-shellfish-18" help="Define your materials database and apply them to the volumes of your problem">
<condition n="Joints" pn="Joints" ov="surface" ovm="element" ov_element_types="quadrilateral" icon="darkorange-shellfish-18" groups_icon="yelowish-group" help="Select your material and the surfaces related to it">
<value n="material" pn="material joint" editable='0' help="Choose a material from the database" values='[Cmas2d::GetMaterialsListJoint %W]' v="Joint1">
<edit_command n="Edit materials" pn="Edit materials" icon="darkorange-block1.png" proc='Cmas2d::EditDatabaseListDirectJoint %W %DICT %BC'/>
</value>
</condition>
<include path="xml/materials_joint.xml"/>
</container>
</wFAST_data>
To link to the two datasets, I prepared separate procedures:
Cmas2d::GetMaterialsList and Cmas2d::GetMaterialsListJoint
Cmas2d::EditDatabaseListDirect and Cmas2d::EditDatabaseListDirectJoint.
Attached is a screenshot of the error message. It seems like when writing out the material properties in input file, it encounters an error…
I’ve also attached the problemtype files I prepared. I would really appreciate if you can give me some advice.
Regards,
Kenji