-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 2 new run-time diagnostics: PDF and conditional stats (#173)
* Add PDF and conditionals. WIP. * Fix mask in DiagPDF. * More WIP on Conditional. * Add Barrier in FramePlane. * Update diags to have better control over the outputed variables. PDF and conditional write plain ASCII. * Add a light descriptor of the reaction state. * Add coordinate as a derived. * Manage diagnostic variables. * Add reactVariables checks. One can now tag based on reaction rate of a species. * Add diagnostic example in FlameSheet 3D. * Trailing whitespace. * More trailing whitespace. * Add documentation on the new diagnostics. * Trailing whitespace in manual. * Fix undeclared in derived. * Fix capture of field indices in lambda. * Update Plane definition in TurbInflow regtest. * Fix geom vs. geomdata inconsistency in dervied. * Typo. * Add user defined derive. * Add header and formatting to PDF and conditionals diagnostic outputs. * Remove debugging statement. * Enable prescribed range with Conditionals. * use index for derived components * dont divide by zero * varnames for user defined derive * Missing update on intel CI. --------- Co-authored-by: Bruce Perry <[email protected]> Co-authored-by: Bruce Perry <[email protected]>
- Loading branch information
1 parent
54f7076
commit 3fd1187
Showing
24 changed files
with
1,279 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include <PeleLMDeriveFunc.H> | ||
#include <PeleLM_Index.H> | ||
#include <PelePhysics.H> | ||
#include <mechanism.H> | ||
#include <PeleLM.H> | ||
#include <PeleLM_K.H> | ||
|
||
using namespace amrex; | ||
|
||
// | ||
// User-defined derived variables list | ||
// | ||
Vector<std::string> pelelm_setuserderives() | ||
{ | ||
//Vector<std::string> var_names({"derUserDefine_null"}); | ||
return {"derUserDefine_null"}; //var_names; | ||
} | ||
|
||
// | ||
// User-defined derived definition | ||
// | ||
void pelelm_deruserdef (PeleLM* /*a_pelelm*/, const Box& /*bx*/, FArrayBox& /*derfab*/, int /*dcomp*/, int /*ncomp*/, | ||
const FArrayBox& /*statefab*/, const FArrayBox& /*reactfab*/, const FArrayBox& /*pressfab*/, | ||
const Geometry& /*geom*/, Real /*time*/, const Vector<BCRec>& /*bcrec*/, int /*level*/) | ||
{ | ||
Abort("Using derUserDefine derived requires providing a definition in local DeriveUserDefined.cpp"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.