Skip to content
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

Merged
merged 5 commits into from
Mar 8, 2024

Conversation

benflexcompute
Copy link
Collaborator

No description provided.

@benflexcompute benflexcompute added current-version hotfix This is a hotfix or requires a hotfix onto release labels Mar 8, 2024
@@ -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":
Copy link
Contributor

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
Copy link
Collaborator Author

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.

@benflexcompute benflexcompute merged commit af833be into develop Mar 8, 2024
12 checks passed
benflexcompute added a commit that referenced this pull request Mar 8, 2024
* Fix the reconstructionGradientLimiter updater

* Comments addressed

* Let the class handle defaults

* Format

* Lint
benflexcompute added a commit that referenced this pull request Mar 8, 2024
* Fix the reconstructionGradientLimiter updater

* Comments addressed

* Let the class handle defaults

* Format

* Lint
awkrupka pushed a commit that referenced this pull request Mar 10, 2024
* Fix the reconstructionGradientLimiter updater

* Comments addressed

* Let the class handle defaults

* Format

* Lint
maciej-flexcompute added a commit that referenced this pull request Mar 11, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
current-version hotfix This is a hotfix or requires a hotfix onto release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants