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

TotalPressure and buoyantFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 21, 2008, 09:54
Default Hello, I don't manage to us
  #1
Member
 
Rosario Russo
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 56
Rep Power: 8
ariorus is on a distinguished road
Hello,

I don't manage to use total pressure boundary condition in buoyantFoam.

The following error appears:

--> FOAM FATAL ERROR :
request for volVectorField undefined from objectRegistry region0 failed
available objects of type volVectorField are

2
(
U_0
U
)



I think that this may be due to the fact that whenever p (and pd) are created via thermo->p() some information about the boundaries are lost

in fact writing out pd (or p) boundary after the field is created I find


type totalPressure;
U undefined;
phi undefined;
rho undefined;
psi undefined;
gamma 0;
p0 uniform 0;
value uniform 0;


while in the p file I set correctly U, phi, rho and so on.

I guess that if this was the problem it would not be too difficult to be fixed, can anybody help?

Thanks

Rosario.
ariorus is offline   Reply With Quote

Old   January 22, 2008, 09:41
Default Hello again, after digging
  #2
Member
 
Rosario Russo
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 56
Rep Power: 8
ariorus is on a distinguished road
Hello again,

after digging a little I have found that when totalPressure boundaries p and pd are created, only this constructor is used

---------------------
totalPressureFvPatchScalarField::totalPressureFvPa tchScalarField
(
const fvPatch& p,
const DimensionedField<scalar,>& iF
)
:
fixedValueFvPatchScalarField(p, iF),
UName_("undefined"),
phiName_("undefined"),
rhoName_("undefined"),
psiName_("undefined"),
gamma_(0.0),
p0_(p.size(), 0.0)

--------------------

Since UName, phiName and rhoName are set to undefined, this boundary condition cannot work actually.

I saw that if the field is created by

-----------------------

volScalarField p
(
IOobject
(
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

-----------------------------------


these two constructors are used:

-----------------------------
totalPressureFvPatchScalarField::totalPressureFvPa tchScalarField
(
const fvPatch& p,
const DimensionedField<scalar,>& iF,
const dictionary& dict
)
:
fixedValueFvPatchScalarField(p, iF),
UName_(dict.lookup("U")),
phiName_(dict.lookup("phi")),
rhoName_(dict.lookup("rho")),
psiName_(dict.lookup("psi")),
gamma_(readScalar(dict.lookup("gamma"))),
p0_("p0", dict, p.size())

-----------------------------------------

and


------------------------------------------
totalPressureFvPatchScalarField::totalPressureFvPa tchScalarField
(
const totalPressureFvPatchScalarField& tppsf,
const DimensionedField<scalar,>& iF
)
:
fixedValueFvPatchScalarField(tppsf, iF),
UName_(tppsf.UName_),
phiName_(tppsf.phiName_),
rhoName_(tppsf.rhoName_),
psiName_(tppsf.psiName_),
gamma_(tppsf.gamma_),
p0_(tppsf.p0_)

------------------------------------------

In this case everything is fine since all the necessary parameters are set.

I'm not sure whether this might be a bug (and if it is correct to search for a solution) or whether there is any reason why it is so.

Is there anybody who can enlighten me?

Thanks in advance.

Rosario.
ariorus is offline   Reply With Quote

Reply

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
Error with totalPressure fightingfalcon23 OpenFOAM Pre-Processing 1 February 11, 2009 10:48
TotalPressure %3d data to specify floooo OpenFOAM Running, Solving & CFD 0 December 8, 2008 04:58
BuoyantFoam problem miquelvinya OpenFOAM Running, Solving & CFD 25 November 14, 2008 06:52
BuoyantFoam braennstroem OpenFOAM Running, Solving & CFD 22 September 19, 2007 16:55
TotalPressure under WIN2000 James CD-adapco 0 July 12, 2002 05:43


All times are GMT -4. The time now is 16:41.