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

Thermal expansion coefficient and ref temp consolidation #1365

Merged
merged 31 commits into from
Dec 23, 2024

Conversation

marchdf
Copy link
Contributor

@marchdf marchdf commented Nov 21, 2024

Summary

Consolidate the thermal expansion coefficient and reference temperature. Make both of these fields, except some uses of ref temp in rare cases where one needs a single value (e.g. for stats).

Pull request type

Please check the type of change introduced:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Checklist

The following is included:

  • new unit-test(s)
  • new regression test(s)
  • documentation for new capability

This PR was tested by running:

  • the unit tests
    • on GPU
    • on CPU
  • the regression tests
    • on GPU
    • on CPU

@hgopalan
Copy link
Contributor

This assumes user specifies thermal_expansion_coeff but what if reference_temperature is specified instead?

@marchdf
Copy link
Contributor Author

marchdf commented Nov 21, 2024

Nothing to see here for now. Don't worry, I will get there.

@marchdf marchdf force-pushed the thermal-expansion branch 4 times, most recently from b38542b to ed69b17 Compare November 27, 2024 20:42
@marchdf marchdf force-pushed the thermal-expansion branch 4 times, most recently from 6df2cb3 to 2445cc3 Compare December 6, 2024 16:19
@marchdf marchdf force-pushed the thermal-expansion branch 3 times, most recently from ae662b6 to 299e469 Compare December 19, 2024 22:17
@marchdf marchdf changed the title Thermal expansion coefficient consolidation Thermal expansion coefficient and ref temp consolidation Dec 19, 2024
@marchdf
Copy link
Contributor Author

marchdf commented Dec 20, 2024

Diffs I am seeing on CPU:

The following tests FAILED:
         31 - abl_multiphase_laminar (Failed)   -> large diffs
         32 - act_abl_joukowskydisk (Failed)    -> machine diffs, except p and gp at 1e-9
         33 - act_abl_uniformctdisk (Failed)    -> machine diffs, except p and gp at 1e-9
         62 - abl_amd_wenoz (Failed)            -> machine diffs
         76 - ow_stokes (Failed)                -> machine diffs
         92 - forest_drag (Failed)              -> 1e-9 diffs
        107 - abl_kosovic_neutral (Failed)      -> machine diffs, except p and gp at 1e-2
        109 - abl_kosovic_neutral_ib (Failed)   -> machine diffs, except p and gp at 1e-9
        110 - nrel_precursor (Failed)            -> machine diffs, except p and gp at 1e-9
        111 - abl_wallrans_neutral (Failed)       -> machine diffs
        125 - abl_multiphase_w2a (Failed)        -> large diffs
        139 - nrel_terrain (Not Run)
        140 - nrel_terrain_amr (Not Run)

Need to investigate abl_multiphase_w2a and abl_multiphase_laminar

@marchdf
Copy link
Contributor Author

marchdf commented Dec 23, 2024

Down to these:

The following tests FAILED:
         32 - act_abl_joukowskydisk (Failed)  -> machine diffs, except p and gp at 1e-9
         33 - act_abl_uniformctdisk (Failed)     -> machine diffs, except p and gp at 1e-9
         62 - abl_amd_wenoz (Failed)                -> machine diffs
         92 - forest_drag (Failed)                        -> 1e-9 diffs
        107 - abl_kosovic_neutral (Failed)         -> machine diffs, except p and gp at 1e-2
        109 - abl_kosovic_neutral_ib (Failed).   -> machine diffs, except p and gp at 1e-2
        110 - nrel_precursor (Failed)                    -> machine diffs, except p and gp at 1e-9
        111 - abl_wallrans_neutral (Failed)           -> machine diffs
        139 - nrel_terrain (Not Run)
        140 - nrel_terrain_amr (Not Run)

I am fine with pressure and gp diffs. The higher diffs in forest drag are due to the fact that the tolerance on the solver are not tight.

@marchdf
Copy link
Contributor Author

marchdf commented Dec 23, 2024

Just a heads up. This is going to cause warnings with older input files. They will still run fine. But the warnings will educate the user on how to update the input file so that the warnings go away.

@marchdf
Copy link
Contributor Author

marchdf commented Dec 23, 2024

Ok that last tweak made all tests pass except 2:

The following tests FAILED:
         62 - abl_amd_wenoz (Failed)
        111 - abl_wallrans_neutral (Failed)

which are machine diffs. So we are good.

@marchdf marchdf marked this pull request as ready for review December 23, 2024 21:52
Copy link
Contributor

@mbkuhn mbkuhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incredible stuff.

@mbkuhn mbkuhn merged commit d905dce into Exawind:main Dec 23, 2024
15 checks passed
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.

3 participants