CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   FixedFluxPressure cannot find field 1%7cAU (http://www.cfd-online.com/Forums/openfoam-solving/58367-fixedfluxpressure-cannot-find-field-1-7cau.html)

anger September 22, 2008 08:08

Hello, I'm stumbling across
 
Hello,

I'm stumbling across the same error.
I think that it has to do with a missing volScalarField, but I have no idea how to register this field in the objectRegistry.
Anybody knows what to do to get the fixedFluxPressure boundary condition running with (simple)Foam?

Best regards,
-Thomas

deepsterblue September 22, 2008 10:53

Declare a field called 'rUA' i
 
Declare a field called 'rUA' in createFields.H, like this:


volScalarField rUA
(
IOobject
(
"(1|A(U))",
runTime.timeName(),
mesh
),
mesh,
dimensionedScalar("rUA", dimTime, 1),
zeroGradientFvPatchScalarField::typeName
);


And call:

rUA = 1.0/UEqn.A();

inside the PISO loop.

anger September 23, 2008 04:15

Hello Sandeep, thank you fo
 
Hello Sandeep,

thank you for your help, this works.
Just foor the books: a little typo occured in the last equation which should read

rUA = 1.0/UEqn().A()

I put this in pEqn.H

Best regards,
-Thomas

emilianyassenov November 10, 2008 06:50

hi to all I want to simulat
 
hi to all

I want to simulate in straight pipe to include some
heat flow and to see temperature increasing...
which solver I should use...

can anyone help me


EMO


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