Skip to content

Commit

Permalink
FEM: CalculiX writer, rename elset for solid meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and wwmayer committed Oct 5, 2015
1 parent 33fed6a commit d86b0e8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/ccxInpWriter.py
Expand Up @@ -189,7 +189,7 @@ def write_element_sets_material_and_femelement_type(self, f):
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'):
Expand Down Expand Up @@ -296,7 +296,7 @@ def write_femelementsets(self, f):
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)
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/test_files/cube_frequency.inp
Expand Up @@ -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

***********************************************************
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/test_files/cube_static.inp
Expand Up @@ -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

***********************************************************
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/test_files/frequency_analysis.inp
Expand Up @@ -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

***********************************************************
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/test_files/static_analysis.inp
Expand Up @@ -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

***********************************************************
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d86b0e8

Please sign in to comment.