FEM: infile fix, youngs modulus and poisons ratio

have to be in one line for ccx 2.9
This commit is contained in:
Bernd Hahnebach
2016-02-17 17:52:29 +01:00
committed by wmayer
parent a2749920a0
commit 795f7e4ebb

View File

@@ -227,7 +227,7 @@ class inp_writer:
f.write('**FreeCAD material name: ' + mat_info_name + '\n')
f.write('*MATERIAL, NAME=' + mat_name + '\n')
f.write('*ELASTIC \n')
f.write('{}, \n'.format(YM_in_MPa))
f.write('{}, '.format(YM_in_MPa))
f.write('{0:.3f}\n'.format(PR))
density = FreeCAD.Units.Quantity(mat_obj.Material['Density'])
density_in_tone_per_mm3 = float(density.getValueAs('t/mm^3'))