CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   TurbulentIntensityKineticEnergyInlet problem with turbulenceR (https://www.cfd-online.com/Forums/openfoam-solving/58784-turbulentintensitykineticenergyinlet-problem-turbulencer.html)

nico765 January 2, 2008 10:49

Hello, I am trying to use t
 
Hello,

I am trying to use the turbulentIntensityKineticEnergyInlet boundary condition with the simpleFoam solver:
my only problem occurs when i am computing viscous drag on a wall, i get the following error:

--> FOAM FATAL ERROR : Unknown patchTypefield type turbulentIntensityKineticEnergyInlet

Valid patchField types are :

25
(
fixedGradient
symmetryPlane
directMapped
oscillatingFixedValue
turbulentInlet
freestream
default
empty
fixedValue
uniformFixedValue
cyclic
mixed
processor
calculated
slip
timeVaryingMappedFixedValue
timeVaryingUniformFixedValue
directionMixed
sliced
partialSlip
outletInlet
inletOutlet
wedge
zeroGradient
waveTransmissive
)


From function fvPatchField<type>::New(const word&, const fvPatch&, const Field<type>&)
in file /home/nr/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/newFvPatchField.C at line 57.


This occurs when using turbulence->R()().boundaryField()[patchLabel].

I am not trying to compute viscous drag at the inlet http://www.cfd-online.com/OpenFOAM_D...part/happy.gif, so patchLabel is always a wall.

I have looked though the turbulence source files, but i can't see what's missing. My current idea is that the boundary is not included in the turbulence library but i am not sure.


Any help appreciated.

Thanks,

Nicolas

markusrehm June 20, 2008 05:19

Hello, I also have the Turb
 
Hello,

I also have the TurbulentIntensityKineticEnergyInlet-BC and it works fine with the kEpsilon turbulence. Now I want to switch to RSM (LRR) model. For that I need the Reynolds stresses which I usually calculate with the tool "R". But it does not accept that BC. A similar error message as shown above.

How could one modify R to recognize that BC? Or any other ideas?

Regards Markus.

crazysumi July 6, 2009 10:07

Same as in OF-1.5
 
Hi All,

I am also receiving the similar error messages. I am trying the access the "R" Reynolds stresses from the standard turbulence models say for e.g. kEpsilon in my application.
------------------------------------------------------------------------------------------------------------
const volSymmTensorField& R = this->turbulence().R();
scalar uu = R[celli].xx(); // where uu is Rxx in cell "celli".
-----------------------------------------------------------------------------------------------------------

However on running the application for a case, I received following fatal error ::

Unknown patchTypefield type turbulentIntensityKineticEnergyInlet

Valid patchField types are :

26
(
fixedGradient
symmetryPlane
directMapped
oscillatingFixedValue
turbulentInlet
freestream
empty
fixedValue
uniformFixedValue
cyclic
mixed
processor
calculated
slip
timeVaryingMappedFixedValue
timeVaryingUniformFixedValue
directionMixed
generic
sliced
outletInlet
partialSlip
inletOutlet
advective
wedge
zeroGradient
waveTransmissive
)


From function fvPatchField<Type>::New(const word&, const fvPatch&, const Dim ensionedField<Type, volMesh>&)
in file lnInclude/newFvPatchField.C at line 54.

FOAM exiting

The "turbulentIntensityKineticEnergyInlet" BC for the 'k' field variable runs well with the OF turbulence models. However, it is not supported when I try to access the Reynolds Stresses.

There is one more similar topic (http://www.cfd-online.com/Forums/ope...ergyinlet.html) but that was not answered. Please advice someone.

Thanks


All times are GMT -4. The time now is 01:27.