chyczewski |
November 5, 2013 15:37 |
How do I alter inletOutletFvPatchField to use a refValue calculated w/in the code?
I am solving the governing equation within a loop as follows:
Code:
for (int m=0; m<mMax; ++m)
{
for (int n = 0; n<nMax; ++n)
{
(Calculate Smn and phimn and extract Amn from a global A)
scalar Aeqmn = Aeq[m][n];
solve(fvm::ddt(Amn)+fvm::div(phimn,Amn)==SMN);
(Update global A with updated Amn)
}
}
I copied inletOutletFvPatchField to a new waveInletOutletFvPatchField and have it linked to the code. However, I need some guidance on how to modify it so that, at the inflow boundary cells, instead of applying a reference value read from an input file, it applies a Aeqmn (defined above the call to solve). Any help or reference to similar examples would be appreciated. Thanks.
|