FEM: CalculiX writer, rename elset for solid meshes

This commit is contained in:
Bernd Hahnebach 2015-09-27 12:16:57 +02:00 committed by wmayer
parent 33fed6a630
commit d86b0e8f76
5 changed files with 10 additions and 10 deletions

View File

@ -189,7 +189,7 @@ class inp_writer:
e_count += len(e_not_referenced)
f.write('\n')
else: # all fem_elements are solids --> volume mesh
material_elementset_name = 'MaterialSolidElements'
material_elementset_name = 'MechanicalMaterialSolid'
f.write('*ELSET,ELSET=' + material_elementset_name + '\n')
f.write('Eall\n')
if hasattr(self, 'fem_element_table'):
@ -296,7 +296,7 @@ class inp_writer:
f.write(el_prop)
f.write(sc_prop)
else: # all fem_elements are solids
el_set = 'ELSET=' + 'MaterialSolidElements' + ', '
el_set = 'ELSET=' + 'MechanicalMaterialSolid' + ', '
material = 'MATERIAL=' + mat_name
el_prop = '*SOLID SECTION, ' + el_set + material + '\n'
f.write(el_prop)

View File

@ -415,7 +415,7 @@
***********************************************************
** Element sets for materials and FEM element type (solid, shell, beam)
** written by write_element_sets_material_and_femelement_type function
*ELSET,ELSET=MaterialSolidElements
*ELSET,ELSET=MechanicalMaterialSolid
Eall
***********************************************************
@ -483,7 +483,7 @@ Eall
***********************************************************
** Sections
** written by write_femelementsets function
*SOLID SECTION, ELSET=MaterialSolidElements, MATERIAL=Steel
*SOLID SECTION, ELSET=MechanicalMaterialSolid, MATERIAL=Steel
***********************************************************
** One step is needed to calculate the mechanical analysis of FreeCAD

View File

@ -415,7 +415,7 @@
***********************************************************
** Element sets for materials and FEM element type (solid, shell, beam)
** written by write_element_sets_material_and_femelement_type function
*ELSET,ELSET=MaterialSolidElements
*ELSET,ELSET=MechanicalMaterialSolid
Eall
***********************************************************
@ -483,7 +483,7 @@ Eall
***********************************************************
** Sections
** written by write_femelementsets function
*SOLID SECTION, ELSET=MaterialSolidElements, MATERIAL=Steel
*SOLID SECTION, ELSET=MechanicalMaterialSolid, MATERIAL=Steel
***********************************************************
** One step is needed to calculate the mechanical analysis of FreeCAD

View File

@ -391,7 +391,7 @@
***********************************************************
** Element sets for materials and FEM element type (solid, shell, beam)
** written by write_element_sets_material_and_femelement_type function
*ELSET,ELSET=MaterialSolidElements
*ELSET,ELSET=MechanicalMaterialSolid
Eall
***********************************************************
@ -459,7 +459,7 @@ Eall
***********************************************************
** Sections
** written by write_femelementsets function
*SOLID SECTION, ELSET=MaterialSolidElements, MATERIAL=TestMaterial
*SOLID SECTION, ELSET=MechanicalMaterialSolid, MATERIAL=TestMaterial
***********************************************************
** One step is needed to calculate the mechanical analysis of FreeCAD

View File

@ -391,7 +391,7 @@
***********************************************************
** Element sets for materials and FEM element type (solid, shell, beam)
** written by write_element_sets_material_and_femelement_type function
*ELSET,ELSET=MaterialSolidElements
*ELSET,ELSET=MechanicalMaterialSolid
Eall
***********************************************************
@ -459,7 +459,7 @@ Eall
***********************************************************
** Sections
** written by write_femelementsets function
*SOLID SECTION, ELSET=MaterialSolidElements, MATERIAL=TestMaterial
*SOLID SECTION, ELSET=MechanicalMaterialSolid, MATERIAL=TestMaterial
***********************************************************
** One step is needed to calculate the mechanical analysis of FreeCAD