Skip to content

Commit

Permalink
added low dissipation
Browse files Browse the repository at this point in the history
fixed black
  • Loading branch information
maciej-flexcompute committed Aug 3, 2023
1 parent 8d4bfbf commit e7cd56d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions flow360/component/flow360_params/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class NavierStokesSolver(GenericSolverSettings):
limitPressureDensity :
Limiter for pressure and density
numericalDissipationFactor :
A factor in the range [0.01, 1.0] which exponentially reduces the dissipation of the numerical flux.
The recommended starting value for most low-dissipation runs is 0.2
Returns
-------
Expand All @@ -93,6 +96,9 @@ class NavierStokesSolver(GenericSolverSettings):
limit_pressure_density: Optional[bool] = pd.Field(alias="limitPressureDensity")
extra_dissipation: Optional[float] = pd.Field(alias="extraDissipation")
viscous_wave_speed_scale: Optional[float] = pd.Field(alias="viscousWaveSpeedScale")
numerical_dissipation_factor: Optional[pd.confloat(ge=0.01, le=1)] = pd.Field(
alias="numericalDissipationFactor"
)


class TurbulenceModelModelType(str, Enum):
Expand Down
2 changes: 1 addition & 1 deletion flow360/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
version
"""
__version__ = "0.2.0b9"
__version__ = "0.2.0b10"
2 changes: 1 addition & 1 deletion tests/test_flow360.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.2.0b9"
assert __version__ == "0.2.0b10"
1 change: 1 addition & 0 deletions tests/test_flow360_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ def test_navier_stokes():
order_of_accuracy=2,
limit_velocity=True,
limit_pressure_density=False,
numerical_dissipation_factor=0.2,
)
p = Flow360Params(
navier_stokes_solver=ns,
Expand Down

0 comments on commit e7cd56d

Please sign in to comment.