create volTensorField in rhoCentralFoam
I create a volTensorFoam for gradient of U gradU in rhoCentralFoam.C as follows:
volTensorField tauMC("tauMC", mu*dev2(fvc::grad(U)().T()));
// --- Solve density
solve(fvm::ddt(rho) + fvc::div(phi));
I wrote my boundary condition, I call gradU for calculation as:
const fvPatchField<tensor>& pgradU = patch().lookupPatchField<volTensorField, tensor>("gradU");
So i do not have problem when I compile boundary condition. But I run the case and get the error
--> FOAM FATAL ERROR:
request for volTensorField gradU from objectRegistry region0 failed
available objects of type volTensorField are
How can I fix this problem?
We had the same problem, did you find any remedy to find gardU?
|All times are GMT -4. The time now is 11:11.|