FEM: ccxInpWriter shouldn't do any validation or guessing
Also, there is no need to print material parameters to the console. User can see that info in dialog box, in .inp file and it's also printed to console after material has been set. Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
parent
5e48d624e4
commit
7036d46bf2
|
@ -97,14 +97,7 @@ class inp_writer:
|
|||
for material_object in self.material_objects:
|
||||
# get material properties
|
||||
YM = FreeCAD.Units.Quantity(material_object['Object'].Material['YoungsModulus'])
|
||||
if YM.Unit.Type == '':
|
||||
print 'Material "YoungsModulus" has no Unit, asuming kPa!'
|
||||
YM = FreeCAD.Units.Quantity(YM.Value, FreeCAD.Units.Unit('Pa'))
|
||||
else:
|
||||
print 'YM unit: ', YM.Unit.Type
|
||||
print 'YM = ', YM
|
||||
PR = float(material_object['Object'].Material['PoissonRatio'])
|
||||
print 'PR = ', PR
|
||||
material_name = material_object['Object'].Material['Name'][:80]
|
||||
# write material properties
|
||||
inpfile.write('*MATERIAL, NAME=' + material_name + '\n')
|
||||
|
|
Loading…
Reference in New Issue
Block a user