Skip to content

Fix default setups #4564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/API/SetupTemplatesIcepak.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can edit a setup after it is created. Here is an example:
# Any property of this setup can be found on this page.
setup = app.create_setup(MaxIterations=5)


Available turbulent models are: ``"ZeroEquation"``, ``"TwoEquation"``, ``"EnhancedTwoEquation"``, ``"RNG"``, ``"EnhancedRNG"``, ``"RealizableTwoEquation"``, ``"EnhancedRealizableTwoEquation"``, ``"SpalartAllmaras"``, ``"kOmegaSST"``.

.. pprint:: pyaedt.modules.SetupTemplates.TransientFlowOnly
.. pprint:: pyaedt.modules.SetupTemplates.TransientTemperatureOnly
Expand Down
40 changes: 23 additions & 17 deletions pyaedt/modules/SetupTemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
{
"Enabled": True,
"Flow Regime": "Laminar",
"Turbulent Model Eqn": "ZeroEquation",
"Include Temperature": True,
"Include Flow": True,
"Include Gravity": False,
Expand Down Expand Up @@ -380,6 +381,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
{
"Enabled": True,
"Flow Regime": "Laminar",
"Turbulent Model Eqn": "ZeroEquation",
"Include Temperature": True,
"Include Gravity": False,
"Solution Initialization - X Velocity": "0m_per_sec",
Expand Down Expand Up @@ -441,6 +443,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
{
"Enabled": True,
"Flow Regime": "Laminar",
"Turbulent Model Eqn": "ZeroEquation",
"Include Flow": True,
"Include Gravity": False,
"Solution Initialization - X Velocity": "0m_per_sec",
Expand Down Expand Up @@ -793,6 +796,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
{
"Enabled": True,
"Flow Regime": "Laminar",
"Turbulent Model Eqn": "ZeroEquation",
"Include Temperature": True,
"Include Flow": True,
"Include Gravity": False,
Expand All @@ -811,7 +815,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"Convergence Criteria - Turbulent Dissipation Rate": "0.001",
"Convergence Criteria - Specific Dissipation Rate": "0.001",
"Convergence Criteria - Discrete Ordinates": "1e-06",
"IsEnabled:=": False,
"IsEnabled": False,
"Radiation Model": "Off",
"Solar Radiation Model": "Solar Radiation Calculator",
"Solar Radiation - Scattering Fraction": "0",
Expand Down Expand Up @@ -865,9 +869,9 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"Linear Solver Stabilization - Temperature": "None",
"Coupled pressure-velocity formulation": False,
"Frozen Flow Simulation": False,
"Start Time:=": "0s",
"Stop Time:=": "20s",
"Time Step:=": "1s",
"Start Time": "0s",
"Stop Time": "20s",
"Time Step": "1s",
"Iterations per Time Step": 20,
"Import Start Time": False,
"Copy Fields From Source": False,
Expand All @@ -883,6 +887,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
{
"Enabled": True,
"Flow Regime": "Laminar",
"Turbulent Model Eqn": "ZeroEquation",
"Include Temperature": True,
"Include Flow": False,
"Include Gravity": False,
Expand All @@ -901,7 +906,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"Convergence Criteria - Turbulent Dissipation Rate": "0.001",
"Convergence Criteria - Specific Dissipation Rate": "0.001",
"Convergence Criteria - Discrete Ordinates": "1e-06",
"IsEnabled:=": False,
"IsEnabled": False,
"Radiation Model": "Off",
"Solar Radiation Model": "Solar Radiation Calculator",
"Solar Radiation - Scattering Fraction": "0",
Expand Down Expand Up @@ -955,9 +960,9 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"Linear Solver Stabilization - Temperature": "None",
"Coupled pressure-velocity formulation": False,
"Frozen Flow Simulation": False,
"Start Time:=": "0s",
"Stop Time:=": "20s",
"Time Step:=": "1s",
"Start Time": "0s",
"Stop Time": "20s",
"Time Step": "1s",
"Iterations per Time Step": 20,
"Import Start Time": False,
"Copy Fields From Source": False,
Expand All @@ -973,6 +978,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
{
"Enabled": True,
"Flow Regime": "Laminar",
"Turbulent Model Eqn": "ZeroEquation",
"Include Temperature": False,
"Include Flow": True,
"Include Gravity": False,
Expand All @@ -991,7 +997,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"Convergence Criteria - Turbulent Dissipation Rate": "0.001",
"Convergence Criteria - Specific Dissipation Rate": "0.001",
"Convergence Criteria - Discrete Ordinates": "1e-06",
"IsEnabled:=": False,
"IsEnabled": False,
"Radiation Model": "Off",
"Solar Radiation Model": "Solar Radiation Calculator",
"Solar Radiation - Scattering Fraction": "0",
Expand Down Expand Up @@ -1045,9 +1051,9 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"Linear Solver Stabilization - Temperature": "None",
"Coupled pressure-velocity formulation": False,
"Frozen Flow Simulation": False,
"Start Time:=": "0s",
"Stop Time:=": "20s",
"Time Step:=": "1s",
"Start Time": "0s",
"Stop Time": "20s",
"Time Step": "1s",
"Iterations per Time Step": 20,
"Import Start Time": False,
"Copy Fields From Source": False,
Expand Down Expand Up @@ -1150,7 +1156,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"InclBBoxOption": 1,
"AuxBlock": OrderedDict({}),
"DoAdaptive": True,
"Color": ["R:=", 0, "G:=", 0, "B:=", 0], # TODO: create something smart for color arrays: like a class
"Color": ["R", 0, "G", 0, "B", 0], # TODO: create something smart for color arrays: like a class
"AdvancedSettings": HFSS3DLayout_AdvancedSettings,
"CurveApproximation": HFSS3DLayout_CurveApproximation,
"Q3D_DCSettings": HFSS3DLayout_Q3D_DCSettings,
Expand Down Expand Up @@ -1225,7 +1231,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"ICModeLength": "50nm",
"AuxBlock": OrderedDict({}),
"DoAdaptive": True,
"Color": ["R:=", 0, "G:=", 0, "B:=", 0], # TODO: create something smart for color arrays: like a class
"Color": ["R", 0, "G", 0, "B", 0], # TODO: create something smart for color arrays: like a class
"AdvancedSettings": HFSS3DLayout_AdvancedSettings,
"CurveApproximation": HFSS3DLayout_CurveApproximation,
"Q3D_DCSettings": HFSS3DLayout_Q3D_DCSettings,
Expand All @@ -1240,8 +1246,8 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
HFSS3DLayout_SIWAdvancedSettings = OrderedDict(
{
"IncludeCoPlaneCoupling": True,
"IncludeInterPlaneCoupling:=": False,
"IncludeSplitPlaneCoupling:=": True,
"IncludeInterPlaneCoupling": False,
"IncludeSplitPlaneCoupling": True,
"IncludeFringeCoupling": True,
"IncludeTraceCoupling": True,
"XtalkThreshold": "-34",
Expand Down Expand Up @@ -1334,7 +1340,7 @@ def HFSS3DLayout_AdaptiveFrequencyData(freq):
"Properties": HFSS3DLayout_Properties,
"CustomSetup": False,
"SolveSetupType": "SIwave",
"Color": ["R:=", 0, "G:=", 0, "B:=", 0],
"Color": ["R", 0, "G", 0, "B", 0],
"Position": 0,
"SimSetupType": "kSIwave",
"SimulationSettings": HFSS3DLayout_ACSimulationSettings,
Expand Down
Loading