CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Modified Atmospheric Boundary Layer BC (https://www.cfd-online.com/Forums/openfoam-programming-development/130557-modified-atmospheric-boundary-layer-bc.html)

ashghan February 28, 2014 09:30

Modified Atmospheric Boundary Layer BC
 
1 Attachment(s)
Hello Everybody,

I have modified the atmBoundaryLayerInletVelocity Boundary Condition to a customFvPatch Boundary condition (which is Attached). It is compiled and does not give any errors. However when I try to use it after updating my ControlDict. It gives me the following error.

Code:


--> FOAM FATAL IO ERROR:
Unknown patchField type custom for patch type patch

Valid patchField types are :

68
(
SRFFreestreamVelocity
SRFVelocity
activeBaffleVelocity
activePressureForceBaffleVelocity
advective
atmBoundaryLayerInletVelocity
calculated
codedFixedValue
codedMixed
cyclic
cyclicAMI
cyclicSlip
cylindricalInletVelocity
directionMixed
empty
externalCoupled
fixedGradient
fixedInternalValue
fixedJump
fixedJumpAMI
fixedMean
fixedNormalSlip
fixedValue
flowRateInletVelocity
fluxCorrectedVelocity
freestream
inletOutlet
kqRWallFunction
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mappedFlowRate
mappedVelocityFlux
mixed
movingWallVelocity
nonuniformTransformCyclic
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
pressureDirectedInletOutletVelocity
pressureDirectedInletVelocity
pressureInletOutletParSlipVelocity
pressureInletOutletVelocity
pressureInletUniformVelocity
pressureInletVelocity
pressureNormalInletOutletVelocity
processor
processorCyclic
rotatingPressureInletOutletVelocity
rotatingWallVelocity
sliced
slip
supersonicFreestream
surfaceNormalFixedValue
swirlFlowRateInletVelocity
symmetryPlane
timeVaryingMappedFixedValue
translatingWallVelocity
turbulentInlet
uniformFixedValue
uniformJump
uniformJumpAMI
variableHeightFlowRateInletVelocity
waveTransmissive
wedge
zeroGradient
)

Can anybody tell me where am I going wrong.


Regards
Ashwin

Sherlock_1812 March 5, 2014 06:15

Hi,

From the error you've posted it is seen that the patch doesn't recognise the boundary condition. Check if you've updated the Make/files files in the location where you've defined the boundary condition and give 'wmake' again.

Since you have already added libcustomFvPatchField.so to the controlDict it should recognise the BC.


All times are GMT -4. The time now is 14:12.