[SCFD-3899] Added support for mach reynolds input in Aerospace condition#961
[SCFD-3899] Added support for mach reynolds input in Aerospace condition#961wiktor-flex merged 24 commits intodevelopfrom
Conversation
77ccfd9 to
1140140
Compare
tests/simulation/translator/utils/symmetryBC_param_generator.py
Outdated
Show resolved
Hide resolved
|
This is not a complete fix since for existing simulation.json on S3 cloud, we still store the key-None pairs in Also like I mentioned above. Let's not merge this to 25.2 for now since it is a public version. model_dump fix may introduce bugs. I asked @angranl-flex to add the None-popper in an dedicated PR. We can merge this into develop + 25.5 branch |
flow360/component/simulation/operating_condition/operating_condition.py
Outdated
Show resolved
Hide resolved
flow360/component/simulation/operating_condition/operating_condition.py
Outdated
Show resolved
Hide resolved
|
Let's ensure the Reynolds is consistent with Solver definition. @wiktor-flex Could you also update the definition here? |
|
I did hand calculation for |
…ion (#961) * added operating condition from mach reynolds to aerospacecondition * black and isort * made exclude_none default in model_dump * fixed test * fixed solver translator unittests * Revert "fixed solver translator unittests" This reverts commit 1140140. * Revert "fixed test" This reverts commit 4137165. * Revert "made exclude_none default in model_dump" This reverts commit 5ece895. * added removing none fields for multi constructor model * small function name change to be more clear * Revert "small function name change to be more clear" This reverts commit 38358f9. * Revert "added removing none fields for multi constructor model" This reverts commit bae5e3d. * fixed conflicts in unittest * black * removed space for consistency * changed density to be calculated from mach and not mach ref * changed reynolds number function to be consistent with solver * added empty line so that list builds correctly * added backslashes to make infty symboo --------- Co-authored-by: Maciej Skarysz <[email protected]> Co-authored-by: Ben <[email protected]>
…ion (#961) * added operating condition from mach reynolds to aerospacecondition * black and isort * made exclude_none default in model_dump * fixed test * fixed solver translator unittests * Revert "fixed solver translator unittests" This reverts commit 1140140. * Revert "fixed test" This reverts commit 4137165. * Revert "made exclude_none default in model_dump" This reverts commit 5ece895. * added removing none fields for multi constructor model * small function name change to be more clear * Revert "small function name change to be more clear" This reverts commit 38358f9. * Revert "added removing none fields for multi constructor model" This reverts commit bae5e3d. * fixed conflicts in unittest * black * removed space for consistency * changed density to be calculated from mach and not mach ref * changed reynolds number function to be consistent with solver * added empty line so that list builds correctly * added backslashes to make infty symboo --------- Co-authored-by: Maciej Skarysz <[email protected]> Co-authored-by: Ben <[email protected]>
…ion (#961) * added operating condition from mach reynolds to aerospacecondition * black and isort * made exclude_none default in model_dump * fixed test * fixed solver translator unittests * Revert "fixed solver translator unittests" This reverts commit 1140140. * Revert "fixed test" This reverts commit 4137165. * Revert "made exclude_none default in model_dump" This reverts commit 5ece895. * added removing none fields for multi constructor model * small function name change to be more clear * Revert "small function name change to be more clear" This reverts commit 38358f9. * Revert "added removing none fields for multi constructor model" This reverts commit bae5e3d. * fixed conflicts in unittest * black * removed space for consistency * changed density to be calculated from mach and not mach ref * changed reynolds number function to be consistent with solver * added empty line so that list builds correctly * added backslashes to make infty symboo --------- Co-authored-by: Maciej Skarysz <[email protected]> Co-authored-by: Ben <[email protected]>
…ion (#961) (#1103) * added operating condition from mach reynolds to aerospacecondition * black and isort * made exclude_none default in model_dump * fixed test * fixed solver translator unittests * Revert "fixed solver translator unittests" This reverts commit 1140140. * Revert "fixed test" This reverts commit 4137165. * Revert "made exclude_none default in model_dump" This reverts commit 5ece895. * added removing none fields for multi constructor model * small function name change to be more clear * Revert "small function name change to be more clear" This reverts commit 38358f9. * Revert "added removing none fields for multi constructor model" This reverts commit bae5e3d. * fixed conflicts in unittest * black * removed space for consistency * changed density to be calculated from mach and not mach ref * changed reynolds number function to be consistent with solver * added empty line so that list builds correctly * added backslashes to make infty symboo --------- Co-authored-by: Wiktor <[email protected]> Co-authored-by: Maciej Skarysz <[email protected]> Co-authored-by: Ben <[email protected]>
Changed operating_condition_from_mach_reynolds function from a standalone one to a classmethod of AerospaceCondition. so that it utilizes MultiConstructorBaseModel.