-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for using (v,e) interpolation tables in THM #31860
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: next
Are you sure you want to change the base?
Conversation
|
Worked on adding support for a volume junction, so this should be enough for general use in THM now. |
a03a926 to
da808c2
Compare
Add debugging output
With this we can initialze a THM flow channel 1 phase refs idaholab#20101
- add the p/T from v e with derivatives and AD derivatives to be able to do a Newton solve with AD refs idaholab#20101
- requires T_from_p_rho and e_from_p_T with AD for pT tabulations refs idaholab#20101
- use parameter tolerance - use parameter number of iterations
…he input file - also the current iterate and targets
- mention two options: interpolated properties with specific name
fp object
to enable using volume junctions - use newton on getting rho=1/v, then newton again to get e by inverting T(v,e)
to use TFP with volume junction When using (p,T) previously, s_from_v_e ended up computed through a p_T_from_v_e call
to satisfy the p_from_h_s call in volume junction
to enable use of v e tabuluations with volume junctions
…erties (consistency) Use the FP uo preferentially for computing grids
…rated from a FP object
Add more range check
fd862a6 to
76fa2d6
Compare
|
Job Documentation, step Docs: sync website on 470fc75 wanted to post the following: View the site here This comment will be updated on new commits. |
- enable when not using (p,T)->(v,e) conversion - avoid the header to be able to use for gold files - avoid a lone comma when not outputting any extra properties - avoid conversion errors with h(p,T) call
Add a dedicated test for (p,T) output
- try to guess when newton is used for initial guess checks
initialize FP earlier & use the tabulation rather than the FP
…y sepecifying the interpolated properties in the input - address porous flow failure that was relying on forwarding a property
fac1771 to
502dc25
Compare
|
Job Coverage, step Generate coverage on 470fc75 wanted to post the following: Framework coverageCoverage did not change Modules coverageFluid properties
Full coverage reportsReports
This comment will be updated on new commits. |
||||||||||||||||||||||||||
Make sure to initialize (v,e) grid for passthrough case Add testing for (v,e) passthrough
- create a dedicated passthrough tabulation - use idg fps that have the most AD definitions created
…e FP - otherwise we would compute min/max from FP calls OOB from the tabulation - then flush to min/max that could be OOB
c326676 to
ed4be65
Compare
- T/p from v e with derivatives in the passthrough _fp case - AD e and v from p T - e from p rho using a pT tabulation - AD s from v e - T from p rho using a ve tabulation
|
Job Test, step Results summary on 470fc75 wanted to post the following: Framework test summaryCompared against b79a48d in job civet.inl.gov/job/3380566. No change Modules test summaryCompared against b79a48d in job civet.inl.gov/job/3380566. Added tests
Run time changes
|
Bunch of missing routines, enough to be using the 1 phase pipe flow model at least
EDIT: and the volume junction now. So it should be nearly all we need for regular use, and we are within striking distance if a new object comes up!
Also added:
@licharlot in case you want to keep following TFPs