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

Changes for multi-level perturbations #2205

Merged
merged 4 commits into from
Mar 25, 2025

Conversation

adamwise95
Copy link
Contributor

This PR modifies the perturbation capability to handle multi-levels. The major changes are:

  • redefining certain variables to be vectors based on the number of levels
  • defining the perturbation region based on the valid box for finer levels
  • scaling the perturbation amplitude so that the perturbation amplitude is consistent across levels

This capability should only work with static levels and not with adaptive mesh refinement.

Additionally, an input file has been added to /Exec/DryRegTests/TurbulentInflow to showcase multi-level perturbations (pictures attached here, as well). This input file is for an atmospheric boundary layer.

east
north
south
west

Note that this capability seems to only work with the "source" option. When selecting the "direct" option, the perturbations seem to compound resulting in much larger than desired perturbations.

Step 0:
direct_step0

Step 100 (notice the theta range):
direct_step100

@asalmgren asalmgren merged commit 406bf83 into erf-model:development Mar 25, 2025
19 checks passed
ewquon pushed a commit to ewquon/ERF that referenced this pull request Mar 29, 2025
* ML perturbation modifications

* forgot to include ref_ratio factor

* add inputs for mulitlevel perturbations, ABL style

* fix typo and whitespaces

---------

Co-authored-by: Adam Sidney Wise <[email protected]>
Co-authored-by: Adam Sidney Wise <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants