CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   create volTensorField in rhoCentralFoam (https://www.cfd-online.com/Forums/openfoam-solving/102938-create-voltensorfield-rhocentralfoam.html)

SKLee June 6, 2012 14:22

create volTensorField in rhoCentralFoam
 
Hi all,

I create a volTensorFoam for gradient of U gradU in rhoCentralFoam.C as follows:

------------------
volTensorField gradU("gradU",fvc::grad(U)());

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

1
(
tauMC
)



How can I fix this problem?

Thanks,

Sung-Ki

ehsan December 30, 2012 03:36

Hi

We had the same problem, did you find any remedy to find gardU?

Regards


All times are GMT -4. The time now is 06:07.