-
-
Notifications
You must be signed in to change notification settings - Fork 388
Make Sim1D
/Domain1D
and SolutionArray
usage more consistent
#1995
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1995 +/- ##
==========================================
- Coverage 75.43% 75.33% -0.11%
==========================================
Files 454 454
Lines 56348 56496 +148
Branches 9299 9330 +31
==========================================
+ Hits 42508 42560 +52
- Misses 10698 10771 +73
- Partials 3142 3165 +23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fd23b9e
to
fac152f
Compare
7a9f6bd
to
b84a8fa
Compare
Sim1D
and SolutionArray
usage more consistent
b84a8fa
to
427c6d6
Compare
Sim1D
and SolutionArray
usage more consistentSim1D
/Domain1D
and SolutionArray
usage more consistent
3d0f6a7
to
d82202a
Compare
Accessing properties of a Domain1D via Sim1D conflates domain-specific properties with properties of the Sim1D object. E.g., a grid is specified for a Domain1D, and not for Sim1D. The access policy should follow.
d82202a
to
56dd64f
Compare
56dd64f
to
1f547a2
Compare
7836bbf
to
fb34cb7
Compare
@speth ... This should be ready for a review. What started with a simple bug fix ended up being a broader maintenance job. The work has the side effect of streamlining access for CLib, which should benefit future updates of the MATLAB oneD portion. |
{"pressure", "P"}, | ||
{"density", "D"}, | ||
// reserved names used for 1-D objects | ||
{"spread-rate", "spread_rate"}, |
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.
As an aside: spread_rate
uses snake_case, while other components don't. Since we're already renaming components, this could also be updated here.
Changes proposed in this pull request
Sim1D
/Domain1D
in Python more consistent withSolutionArray
.lambda
from Python. The component is internally renamed toLambda
, but it can still be accessed as before through an 'alias' mapping.getValues
/setValues
forDomain1D
; new methods are also made available to CLib.L->radial_pressure_gradient
,E->electric_field
,Uo->oxidizer_velocity
and move them toDomain1D
.Sim1D
.Sim1D
content viaSolutionArray
Note: While properties are made available for
Domain1D
, convenience getters forSim1D
that are not renamed remain unchanged. Future changes toSolutionArray
andDomain1D
should provide access to various calculated results via CLib; these changes go well beyond the scope of this PR.If applicable, fill in the issue number this pull request is fixing
Closes #1865
If applicable, provide an example illustrating new features this pull request is introducing
Fixes
SolutionArray
:Makes
Domain1D
more consistent withSolutionArray
:Checklist
scons build
&scons test
) and unit tests address code coverage