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

Difference between 'internalField' and 'boundaryField'?

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

Like Tree31Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2014, 00:36
Default
  #21
Member
 
CHARLES
Join Date: May 2013
Posts: 46
Rep Power: 9
CHARLES is on a distinguished road
Thank you very much Armin! You solved my problem!
CHARLES is offline   Reply With Quote

Old   September 20, 2016, 07:29
Default Accessing nu and nut vales
  #22
Member
 
Suman Chakraborty
Join Date: Sep 2014
Location: Mumbai, India
Posts: 42
Rep Power: 8
suman91 is on a distinguished road
Hi there,

I am currently running a flow over backward facing step (using LES) in OpenFAOM 2.4.0. I want access to the kinematic viscosity. So in a ".H" file which I include in pisoFoam.C, I write the following just to see if I have access to nu (kinematic viscosity) value:

Code:
double k_viscosity;
const scalarField& nuCells = nu().internalField();
forAll(mesh.cells(), celli)
{
    k_viscosity = nuCells[celli];;
    Info<< "nu = " << k_viscosity << endl;
}
But during copiling i get error: "error: ‘nu’ was not declared in this scope"

I also want to access the nut values calculated by openFoam. Is there a function to access it ?

Thanks in advance.
suman91 is offline   Reply With Quote

Reply

Tags
boundaryfield, internalfield

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
boundary conditions for simpleFoam calculation foam_noob OpenFOAM Running, Solving & CFD 8 July 1, 2015 09:07
boundaryField vs. internalField sebonator OpenFOAM 10 January 24, 2011 17:43
solidWallHeatFluxTemperature at the solid solid interface in chtMultiRegionSimpleFoam maddalena OpenFOAM Running, Solving & CFD 43 January 11, 2011 03:39
buoyantSimpleRadiationFoam msarkar OpenFOAM 0 February 15, 2010 07:22
pipe flow with heat transfer Fabian OpenFOAM 2 December 12, 2009 05:53


All times are GMT -4. The time now is 12:47.