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

Which boundary condition should be choose for a uniform field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2008, 09:22
Default Dear group These days, I h
  #1
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 20
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Dear group

These days, I have been trying to implement population balance equation into twoPhaseEulerFoam Solver. But some strange things confused me when I change the type of the diameter of bubbles.( from the dimensionedScalar to volScalarField)

Two different methods were used to set the initial values of diameter. To compare the computational results with those from the original codes, the diameter remained the same over the whole domain within the simulation time.

the first method:
read the diameter (uniform in the domain),and set them in the constructor of the phaseModel

d_
(
IOobject
(
"d" +phaseName,
mesh.time().timeName(),
mesh,
IOobject::NO_READ, //NO READ
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar(dict_.lookup("d"))
)

the second method:
read it from the IOobject
d_
(
IOobject
(
"d" +phaseName,
mesh.time().timeName(),
mesh,
IOobject::MUST_READ, //MUST READ
IOobject::AUTO_WRITE
),
mesh
)

the file of da (a is phase name)
FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class volScalarField;
object da;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


dimensions [0 1 0 0 0 0 0];

internalField uniform 0.003;
boundaryField
{
inlet
{
type calculated;
value uniform 0.003;
}

outlet
{
type calculated;
value uniform 0.003;


}

walls
{
type calculated;
value uniform 0.003;

}

defaultFaces
{
type empty;
}
}

computational results from the first method is totally the same as the original code, but not with the second methods, even though with some other boundary conditions, fixedvalue, zeroGrient.

Why? what is the difference between them, which boundary should be used?

Would you give me some suggestion?

Thanks, su junwei
su_junwei 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
non-uniform transient boundary condition? David FLUENT 1 September 6, 2007 18:20
Define non uniform TKE boundary condition in simpleFOAM qtian OpenFOAM Running, Solving & CFD 9 July 30, 2007 15:54
far-field boundary condition laith FLUENT 0 October 16, 2006 23:18
How to set "Far field boundary condition" erick CFX 4 June 21, 2006 14:08
Faf Field Boundary Condition Sarah Main CFD Forum 5 May 5, 2006 02:04


All times are GMT -4. The time now is 05:09.