Closed
Description
Hey
I was hoping to get some help with respect to saving a variable which is computed in OpenQBMM, like the secondary weights and abscissae at every time step. When I looked at the OpenQBMM 5.0.1 and the issues previously raised on this platform, I found two ways to print variables:
- I can change NO_WRITE to AUTO_WRITE to write the primary/secondary weights/absisscae or sigma in quadratureNode.C. THis writes these variables during runtime at specific intervals that we specify in controlDict. But printing these everytime step and reading it does not sound very efficient.
- Other option was the reconstructPointDistribution.C file which is a postprocessing step to generate NDF at specific points in the domain based on written out moment files.
I cannot figure out how either of these methods can be customized to allow for direct saving variables in OpenFOAM. My thought was to save each of these variables (in a generic way) like under a volScalarField and then use it later in the OpenFOAM solver (rather than within OpenQBMM). This would allow for me to compute NDF at every point in the domain at every time step or calculate other source terms.
Any help would be greatly appreciated!
And thanks in advance