Skip to content

Commit

Permalink
FEM: ccx input file, remove trailing whitspaces and not needed comma
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and yorikvanhavre committed Sep 27, 2016
1 parent 33b8593 commit 33efb04
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions src/Mod/Fem/FemInputWriterCcx.py
Expand Up @@ -325,18 +325,18 @@ def write_materials(self, f):
# write material properties
f.write('** FreeCAD material name: ' + mat_info_name + '\n')
f.write('*MATERIAL, NAME=' + mat_name + '\n')
f.write('*ELASTIC \n')
f.write('*ELASTIC\n')
f.write('{0:.0f}, {1:.3f}\n'.format(YM_in_MPa, PR))
if self.analysis_type == "frequency" or self.selfweight_objects or (self.analysis_type == "thermomech" and not self.solver_obj.ThermoMechSteadyState):
f.write('*DENSITY \n')
f.write('{0:.3e}, \n'.format(density_in_tonne_per_mm3))
f.write('*DENSITY\n')
f.write('{0:.3e}\n'.format(density_in_tonne_per_mm3))
if self.analysis_type == "thermomech":
f.write('*CONDUCTIVITY \n')
f.write('{0:.3f}, \n'.format(TC_in_WmK))
f.write('*EXPANSION \n')
f.write('{0:.3e}, \n'.format(TEC_in_mmK))
f.write('*SPECIFIC HEAT \n')
f.write('{0:.3e}, \n'.format(SH_in_JkgK))
f.write('*CONDUCTIVITY\n')
f.write('{0:.3f}\n'.format(TC_in_WmK))
f.write('*EXPANSION\n')
f.write('{0:.3e}\n'.format(TEC_in_mmK))
f.write('*SPECIFIC HEAT\n')
f.write('{0:.3e}\n'.format(SH_in_JkgK))

def write_constraints_initialtemperature(self, f):
f.write('\n***********************************************************\n')
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Fem/test_files/ccx/cube_frequency.inp
Expand Up @@ -471,10 +471,10 @@ Eall
** Density's unit is t/mm^3
** FreeCAD material name: Steel-Generic
*MATERIAL, NAME=MechanicalMaterial
*ELASTIC
*ELASTIC
200000, 0.300
*DENSITY
7.900e-09,
*DENSITY
7.900e-09

***********************************************************
** Sections
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/test_files/ccx/cube_static.inp
Expand Up @@ -470,7 +470,7 @@ Eall
** Young's modulus unit is MPa = N/mm2
** FreeCAD material name: Steel-Generic
*MATERIAL, NAME=MechanicalMaterial
*ELASTIC
*ELASTIC
200000, 0.300

***********************************************************
Expand Down
14 changes: 7 additions & 7 deletions src/Mod/Fem/test_files/ccx/spine_thermomech.inp
Expand Up @@ -102,14 +102,14 @@ Eall
** Specific Heat unit is kJ/t/K = mm^2/s^2/K
** FreeCAD material name: Steel-Generic
*MATERIAL, NAME=MechanicalMaterial
*ELASTIC
*ELASTIC
200000, 0.300
*CONDUCTIVITY
43.270,
*EXPANSION
1.200e-05,
*SPECIFIC HEAT
5.000e+08,
*CONDUCTIVITY
43.270
*EXPANSION
1.200e-05
*SPECIFIC HEAT
5.000e+08

***********************************************************
** Initial temperature constraint
Expand Down

0 comments on commit 33efb04

Please sign in to comment.