-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix the reconstructionGradientLimiter updater #195
Fix the reconstructionGradientLimiter updater #195
Conversation
@@ -547,6 +547,12 @@ class TurbulenceModelSolverLegacy(TurbulenceModelSolver, LegacyModel): | |||
rotation_correction: Optional[bool] = pd.Field(alias="rotationCorrection") | |||
|
|||
def update_model(self): | |||
if self.reconstruction_gradient_limiter is None: | |||
if self.model_type == "SpalartAllmaras": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a model object type we can compare against?
We should only define the mapping from model type string to object type in 1 place and then have the object type used everywhere
"modelConstants": self.model_constants, | ||
} | ||
|
||
try_set(model, "rotationCorrection", self.rotation_correction) | ||
|
||
if self.reconstruction_gradient_limiter is not None: | ||
model["reconstructionGradientLimiter"] = self.reconstruction_gradient_limiter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is still not ideal in the sense that not all default values are set by the SA/KOmega.
* Fix the reconstructionGradientLimiter updater * Comments addressed * Let the class handle defaults * Format * Lint
* Fix the reconstructionGradientLimiter updater * Comments addressed * Let the class handle defaults * Format * Lint
* bumped version to 24.2b1 * added copy example mesh (#192) * added copy mesh from example (#189) * bumped version and added copy example mesh * added update path * Fix crash when running _distribute_shared_output_fields with output_fields being None (#190) (#196) * Fix the reconstructionGradientLimiter updater (#195) (#197) * Fix the reconstructionGradientLimiter updater * Comments addressed * Let the class handle defaults * Format * Lint --------- Co-authored-by: Ben <106089368+benflexcompute@users.noreply.github.com>
No description provided.