diff --git a/src/Mod/Fem/femsolver/calculix/writer.py b/src/Mod/Fem/femsolver/calculix/writer.py index a862061067..e5724eb3cd 100644 --- a/src/Mod/Fem/femsolver/calculix/writer.py +++ b/src/Mod/Fem/femsolver/calculix/writer.py @@ -44,6 +44,37 @@ from femmesh import meshtools from femtools import geomtools +# Interesting forum topic: https://forum.freecadweb.org/viewtopic.php?&t=48451 +# TODO somehow set units at beginning and every time a value is retrieved use this identifier +# this would lead to support of unit system, force might be retrieved in base writer! + + +# the following text will be at the end of the main calculix input file +units_information = """*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) +** +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: +** +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K +""" + + class FemInputWriterCcx(writerbase.FemInputWriter): def __init__( self, @@ -1307,12 +1338,7 @@ class FemInputWriterCcx(writerbase.FemInputWriter): )) f.write("**\n") f.write("**\n") - f.write("**\n") - f.write("** Units\n") - f.write("**\n") - f.write("** Geometry (mesh data) --> mm\n") - f.write("** Materials (Young's modulus) --> N/mm2 = MPa\n") - f.write("** Loads (nodal loads) --> N\n") + f.write(units_information) f.write("**\n") # ******************************************************************************************** diff --git a/src/Mod/Fem/femtest/data/calculix/box_frequency.inp b/src/Mod/Fem/femtest/data/calculix/box_frequency.inp index b6b0661562..4711ed82a4 100644 --- a/src/Mod/Fem/femtest/data/calculix/box_frequency.inp +++ b/src/Mod/Fem/femtest/data/calculix/box_frequency.inp @@ -476,10 +476,26 @@ S, E ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/box_static.inp b/src/Mod/Fem/femtest/data/calculix/box_static.inp index 27d37eaf9e..e2481279f8 100644 --- a/src/Mod/Fem/femtest/data/calculix/box_static.inp +++ b/src/Mod/Fem/femtest/data/calculix/box_static.inp @@ -607,10 +607,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/ccxcantilever_faceload.inp b/src/Mod/Fem/femtest/data/calculix/ccxcantilever_faceload.inp index 27f9102c12..e2d8578077 100644 --- a/src/Mod/Fem/femtest/data/calculix/ccxcantilever_faceload.inp +++ b/src/Mod/Fem/femtest/data/calculix/ccxcantilever_faceload.inp @@ -426,10 +426,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/ccxcantilever_hexa20.inp b/src/Mod/Fem/femtest/data/calculix/ccxcantilever_hexa20.inp index 66fe784525..44d293867d 100644 --- a/src/Mod/Fem/femtest/data/calculix/ccxcantilever_hexa20.inp +++ b/src/Mod/Fem/femtest/data/calculix/ccxcantilever_hexa20.inp @@ -460,10 +460,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/ccxcantilever_nodeload.inp b/src/Mod/Fem/femtest/data/calculix/ccxcantilever_nodeload.inp index 08ff71accf..45d48cf969 100644 --- a/src/Mod/Fem/femtest/data/calculix/ccxcantilever_nodeload.inp +++ b/src/Mod/Fem/femtest/data/calculix/ccxcantilever_nodeload.inp @@ -423,10 +423,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/ccxcantilever_prescribeddisplacement.inp b/src/Mod/Fem/femtest/data/calculix/ccxcantilever_prescribeddisplacement.inp index 861dd97540..ec93d23ea8 100644 --- a/src/Mod/Fem/femtest/data/calculix/ccxcantilever_prescribeddisplacement.inp +++ b/src/Mod/Fem/femtest/data/calculix/ccxcantilever_prescribeddisplacement.inp @@ -431,10 +431,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/constraint_contact_shell_shell.inp b/src/Mod/Fem/femtest/data/calculix/constraint_contact_shell_shell.inp index 55685fa4ed..893a792976 100644 --- a/src/Mod/Fem/femtest/data/calculix/constraint_contact_shell_shell.inp +++ b/src/Mod/Fem/femtest/data/calculix/constraint_contact_shell_shell.inp @@ -38433,10 +38433,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/constraint_contact_solid_solid.inp b/src/Mod/Fem/femtest/data/calculix/constraint_contact_solid_solid.inp index 1e99dbb9cd..efdeddaca9 100644 --- a/src/Mod/Fem/femtest/data/calculix/constraint_contact_solid_solid.inp +++ b/src/Mod/Fem/femtest/data/calculix/constraint_contact_solid_solid.inp @@ -5365,10 +5365,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/constraint_sectionprint.inp b/src/Mod/Fem/femtest/data/calculix/constraint_sectionprint.inp index 794722c442..96b521775a 100644 --- a/src/Mod/Fem/femtest/data/calculix/constraint_sectionprint.inp +++ b/src/Mod/Fem/femtest/data/calculix/constraint_sectionprint.inp @@ -3479,10 +3479,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/constraint_tie.inp b/src/Mod/Fem/femtest/data/calculix/constraint_tie.inp index fdd44fa9c1..8ad31106ee 100644 --- a/src/Mod/Fem/femtest/data/calculix/constraint_tie.inp +++ b/src/Mod/Fem/femtest/data/calculix/constraint_tie.inp @@ -18671,10 +18671,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/material_multiple_bendingbeam_fiveboxes.inp b/src/Mod/Fem/femtest/data/calculix/material_multiple_bendingbeam_fiveboxes.inp index 069753248b..1f1ad967c3 100644 --- a/src/Mod/Fem/femtest/data/calculix/material_multiple_bendingbeam_fiveboxes.inp +++ b/src/Mod/Fem/femtest/data/calculix/material_multiple_bendingbeam_fiveboxes.inp @@ -29207,10 +29207,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/material_multiple_bendingbeam_fivefaces.inp b/src/Mod/Fem/femtest/data/calculix/material_multiple_bendingbeam_fivefaces.inp index 51d3ff06b4..09296d047b 100644 --- a/src/Mod/Fem/femtest/data/calculix/material_multiple_bendingbeam_fivefaces.inp +++ b/src/Mod/Fem/femtest/data/calculix/material_multiple_bendingbeam_fivefaces.inp @@ -2718,10 +2718,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/material_multiple_tensionrod_twoboxes.inp b/src/Mod/Fem/femtest/data/calculix/material_multiple_tensionrod_twoboxes.inp index 763991a0bf..c0c2805461 100644 --- a/src/Mod/Fem/femtest/data/calculix/material_multiple_tensionrod_twoboxes.inp +++ b/src/Mod/Fem/femtest/data/calculix/material_multiple_tensionrod_twoboxes.inp @@ -1299,10 +1299,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/material_nonlinear.inp b/src/Mod/Fem/femtest/data/calculix/material_nonlinear.inp index 54d65aa482..34fa09e23a 100644 --- a/src/Mod/Fem/femtest/data/calculix/material_nonlinear.inp +++ b/src/Mod/Fem/femtest/data/calculix/material_nonlinear.inp @@ -20136,10 +20136,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/thermomech_bimetall.inp b/src/Mod/Fem/femtest/data/calculix/thermomech_bimetall.inp index 5497230335..482fe55638 100644 --- a/src/Mod/Fem/femtest/data/calculix/thermomech_bimetall.inp +++ b/src/Mod/Fem/femtest/data/calculix/thermomech_bimetall.inp @@ -8268,10 +8268,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/thermomech_flow1D.inp b/src/Mod/Fem/femtest/data/calculix/thermomech_flow1D.inp index 403c65b0b6..71582cca62 100644 --- a/src/Mod/Fem/femtest/data/calculix/thermomech_flow1D.inp +++ b/src/Mod/Fem/femtest/data/calculix/thermomech_flow1D.inp @@ -177,10 +177,26 @@ MF, PS ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K ** diff --git a/src/Mod/Fem/femtest/data/calculix/thermomech_spine.inp b/src/Mod/Fem/femtest/data/calculix/thermomech_spine.inp index dbda8210d3..c8e9a1160b 100644 --- a/src/Mod/Fem/femtest/data/calculix/thermomech_spine.inp +++ b/src/Mod/Fem/femtest/data/calculix/thermomech_spine.inp @@ -216,10 +216,26 @@ RF ** analysis name --> Analysis ** ** +*********************************************************** +** About units: +** See ccx manual, ccx does not know about any unit. +** Golden rule: The user must make sure that the numbers he provides have consistent units. +** The user is the FreeCAD calculix writer module ;-) ** -** Units +** The unit system which is used at Guido Dhodts company: mm, N, s, K +** Since Length and Mass are connected by Force, if Length is mm the Mass is in t to get N +** The following units are used to write to inp file: ** -** Geometry (mesh data) --> mm -** Materials (Young's modulus) --> N/mm2 = MPa -** Loads (nodal loads) --> N +** Length: mm (this includes the mesh geometry) +** Mass: t +** TimeSpan: s +** Temperature: K +** +** This leads to: +** Force: N +** Pressure: N/mm^2 +** Density: t/mm^2 +** Gravity: mm/s^2 +** Thermal conductivity: t*mm/K*s^3 +** Specific Heat: kJ/t/K = mm^2/s^2/K **