CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

create volTensorField in rhoCentralFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2012, 15:22
Default create volTensorField in rhoCentralFoam
  #1
New Member
 
Lee
Join Date: Oct 2011
Posts: 15
Rep Power: 15
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

--> 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
SKLee is offline   Reply With Quote

Old   December 30, 2012, 04:36
Default
  #2
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Hi

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

Regards
ehsan is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[blockMesh] Include list of points Hikachu OpenFOAM Meshing & Mesh Conversion 0 June 20, 2011 10:03
Actuator disk model audrich FLUENT 0 September 21, 2009 08:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 02: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 18:57.