FEM: calculix writer, improve information about units in input file
This commit is contained in:
@@ -32,8 +32,8 @@ import FreeCAD
|
||||
def write_femelement_material(f, ccxwriter):
|
||||
|
||||
# floats read from ccx should use {:.13G}, see comment in writer module
|
||||
# see unit comment in writer module
|
||||
|
||||
# helper inside class method
|
||||
def is_density_needed():
|
||||
if ccxwriter.analysis_type == "frequency":
|
||||
return True
|
||||
@@ -50,12 +50,7 @@ def write_femelement_material(f, ccxwriter):
|
||||
|
||||
f.write("\n{}\n".format(59 * "*"))
|
||||
f.write("** Materials\n")
|
||||
f.write("** Young\'s modulus unit is MPa = N/mm2\n")
|
||||
if is_density_needed() is True:
|
||||
f.write("** Density\'s unit is t/mm^3\n")
|
||||
if ccxwriter.analysis_type == "thermomech":
|
||||
f.write("** Thermal conductivity unit is kW/mm/K = t*mm/K*s^3\n")
|
||||
f.write("** Specific Heat unit is kJ/t/K = mm^2/s^2/K\n")
|
||||
f.write("** see information about units at file end\n")
|
||||
for femobj in ccxwriter.material_objects:
|
||||
# femobj --> dict, FreeCAD document object is femobj["Object"]
|
||||
mat_obj = femobj["Object"]
|
||||
|
||||
@@ -84,11 +84,11 @@ units_information = """*********************************************************
|
||||
**
|
||||
** This leads to:
|
||||
** Force: N
|
||||
** Pressure: N/mm^2
|
||||
** Pressure: N/mm^2 == MPa (Young's Modulus has unit Pressure)
|
||||
** Density: t/mm^3
|
||||
** Gravity: mm/s^2
|
||||
** Thermal conductivity: t*mm/K/s^3 (same as W/m/K)
|
||||
** Specific Heat: mm^2/s^2/K (same as J/kg/K)
|
||||
** Thermal conductivity: t*mm/K/s^3 == as W/m/K == kW/mm/K
|
||||
** Specific Heat: mm^2/s^2/K = J/kg/K == kJ/t/K
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user