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

Specifying U k and Epsilon boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2008, 03:48
Default Well, 1) yes, i found it so
  #1
New Member
 
Ravi Ramalho
Join Date: Mar 2009
Location: Recife, PE, Brazil
Posts: 5
Rep Power: 17
rres is on a distinguished road
Well,

1) yes, i found it somewhere.

2) reading another example carefully, I realize that faceCentreshub was not a class, but a variable that needs to be declared.const fvPatchVectorField& faceCentreshub = mesh.Cf().boundaryField()[inletPatchID]; should do the trick.

3) I think the problem was in createFields.H, where the fields are actually created/declared.
Adding the following lines and I think it's ok:
Quote:
Info << "Reading field k\n" << endl;
volScalarField k
(
IOobject
(
"k",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

Info << "Reading field Epsilon\n" << endl;
volScalarField epsilon
(
IOobject
(
"epsilon",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Ravi
rres 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
k-epsilon boundary conditions in CFX 11 Ricardo Rezende CFX 1 August 26, 2007 19:44
RANS-Sim. of airfoil: inlet condition of epsilon? Norman Cook Main CFD Forum 3 November 19, 2006 12:30
Boundary condition of the third kind or Danckwertz boundary condition plage OpenFOAM Running, Solving & CFD 4 October 3, 2006 13:21
Wall Boundary Condition in k - epsilon model abhijeet vaidya Main CFD Forum 0 July 14, 2002 04:18
boundary conditions for K and Epsilon Hicham Main CFD Forum 2 January 3, 2001 01:22


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