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 69c241ba89
commit 2f2e6e8f8c

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'))