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/)
-   -   Freestream Boundary Condition Error (https://www.cfd-online.com/Forums/openfoam-solving/132993-freestream-boundary-condition-error.html)

dancfd April 8, 2014 21:24

Freestream Boundary Condition Error
 
Hello all,

I am trying to run a 2D airfoil case with variable freestream. Unfortunately, the need for a non-reflective boundary condition is making things difficult. I tried setting the following boundaries (solver is rhoCentralFoam, turbulence model is kwSST):

U: inlet uniformFixedValue, outlet zeroGradient
p: inlet, outlet: freestreamPressure
k, w, rho, T: inlet, outlet: freestream, freestreamValue internalField

I get the following error when running:

Code:

--> FOAM FATAL ERROR:
[0] Attempt to cast type uniformFixedValue to type freestream
[0]
[0]    From function refCast<To>(From&)
[0]    in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/typeInfo.H at line 114.
[0]
FOAM parallel run aborting

Could anyone please suggest what may be causing this? I suspect there must be some dependency between the type of boundary on U and the type of boundary on another parameter, but this is not clear. Also, the path for the error is strange because my source code is in /opt/openfoam211 and not /home/opencfd ... that path does not exist on my computer! According to the Doxygen documentation, typeInfo.H is called by meshing files and solvers... not clear to me where this failure is originating from.

Thanks in advance for any help that can be offered.

Regards,

Daniel


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