CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

create volTensorField in rhoCentralFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 6, 2012, 14:22
Default create volTensorField in rhoCentralFoam
New Member
Join Date: Oct 2011
Posts: 12
Rep Power: 8
SKLee is on a distinguished road
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


request for volTensorField gradU from objectRegistry region0 failed
available objects of type volTensorField are


How can I fix this problem?


SKLee is offline   Reply With Quote

Old   December 30, 2012, 04:36
Senior Member
Join Date: Mar 2009
Posts: 109
Rep Power: 10
ehsan is on a distinguished road

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

ehsan is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
Include list of points Hikachu OpenFOAM Native Meshers: blockMesh 0 June 20, 2011 09:03
Actuator disk model audrich FLUENT 0 September 21, 2009 07:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55

All times are GMT -4. The time now is 00:01.