[FEM] Elmer: add new default coordinate system

- for new versions of Elmer the default coordinate system is "Cartesian". (if 2D or 3D is determined by the "Variable" setting for the equation)
This commit is contained in:
Uwe
2023-03-17 04:42:28 +01:00
parent db65bb751d
commit c38fcf8ed7
7 changed files with 8 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ from femtools import femutils
if FreeCAD.GuiUp:
import FemGui
COORDINATE_SYSTEM = ["Cartesian 1D", "Cartesian 2D", "Cartesian 3D",
COORDINATE_SYSTEM = ["Cartesian", "Cartesian 1D", "Cartesian 2D", "Cartesian 3D",
"Polar 2D", "Polar 3D",
"Cylindric", "Cylindric Symmetric",
"Axi Symmetric"]
@@ -87,7 +87,7 @@ class Proxy(solverbase.Proxy):
""
)
obj.CoordinateSystem = COORDINATE_SYSTEM
obj.CoordinateSystem = "Cartesian 3D"
obj.CoordinateSystem = "Cartesian"
obj.addProperty(
"App::PropertyIntegerConstraint",

View File

@@ -364,7 +364,7 @@ class Writer(object):
""
)
solver.CoordinateSystem = solverClass.COORDINATE_SYSTEM
solver.CoordinateSystem = "Cartesian 3D"
solver.CoordinateSystem = "Cartesian"
if not hasattr(self.solver, "BDFOrder"):
solver.addProperty(
"App::PropertyIntegerConstraint",

View File

@@ -26,7 +26,7 @@ End
Simulation
Coordinate Mapping(3) = Integer 1 2 3
Coordinate Scaling = Real 0.001
Coordinate System = String "Cartesian 3D"
Coordinate System = String "Cartesian"
Output Intervals = Integer 1
Simulation Type = String "Steady State"
Steady State Max Iterations = Integer 1

View File

@@ -26,7 +26,7 @@ End
Simulation
Coordinate Mapping(3) = Integer 1 2 3
Coordinate Scaling = Real 0.001
Coordinate System = String "Cartesian 3D"
Coordinate System = String "Cartesian"
Output Intervals = Integer 1
Simulation Type = String "Steady State"
Steady State Max Iterations = Integer 1

View File

@@ -26,7 +26,7 @@ End
Simulation
Coordinate Mapping(3) = Integer 1 2 3
Coordinate Scaling = Real 0.001
Coordinate System = String "Cartesian 3D"
Coordinate System = String "Cartesian"
Output Intervals = Integer 1
Simulation Type = String "Steady State"
Steady State Max Iterations = Integer 1

View File

@@ -26,7 +26,7 @@ End
Simulation
Coordinate Mapping(3) = Integer 1 2 3
Coordinate Scaling = Real 0.001
Coordinate System = String "Cartesian 3D"
Coordinate System = String "Cartesian"
Output Intervals = Integer 1
Simulation Type = String "Steady State"
Steady State Max Iterations = Integer 1

View File

@@ -26,7 +26,7 @@ End
Simulation
Coordinate Mapping(3) = Integer 1 2 3
Coordinate Scaling = Real 0.001
Coordinate System = String "Cartesian 3D"
Coordinate System = String "Cartesian"
Output Intervals = Integer 1
Simulation Type = String "Steady State"
Steady State Max Iterations = Integer 1