CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   reconstructPar crashes with unknow patchfield type (https://www.cfd-online.com/Forums/openfoam-post-processing/224764-reconstructpar-crashes-unknow-patchfield-type.html)

jeffery0630 March 3, 2020 14:30

reconstructPar crashes with unknow patchfield type
 
Ok, I downloaded mingw version of v1912 of OpenFoam from:

https://sourceforge.net/projects/ope...r.exe/download

So I copied two tutorial projects (propeller, rotatingFanInRoom) to the home directory and ran the "Allrun" scripts. But both scripts crashed when executing reconstructPar with the following error:

rotatingFanInRoom:
--> FOAM FATAL IO ERROR:
Unknown patchField type kqRWallFunction for patch type wall

or

propeller:
--> FOAM FATAL IO ERROR:
Unknown patchField type epsilonWallFunction for patch type wall

then it prints out the acceptable patchfield types:

Valid patchField types :

71
(
advective
calculated
codedFixedValue
codedMixed
cyclic
cyclicACMI
cyclicAMI
cyclicSlip
directionMixed
empty
exprFixedValue
exprMixed
extrapolatedCalculated
fan
fanPressure
fixedFluxExtrapolatedPressure
fixedFluxPressure
fixedGradient
fixedInternalValue
fixedJump
fixedJumpAMI
fixedMean
fixedMeanOutletInlet
fixedPressureCompressibleDensity
fixedProfile
fixedValue
freestream
freestreamPressure
inletOutlet
inletOutletTotalTemperature
interfaceCompression
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mixed
nonuniformTransformCyclic
outletInlet
outletMappedUniformInlet
partialSlip
phaseHydrostaticPressure
plenumPressure
prghPressure
prghTotalHydrostaticPressure
prghTotalPressure
processor
processorCyclic
rotatingTotalPressure
scaledFixedValue
sliced
slip
symmetry
symmetryPlane
syringePressure
timeVaryingMappedFixedValue
totalPressure
totalTemperature
turbulentInlet
turbulentIntensityKineticEnergyInlet
uniformDensityHydrostaticPressure
uniformFixedGradient
uniformFixedValue
uniformInletOutlet
uniformJump
uniformJumpAMI
uniformTotalPressure
variableHeightFlowRate
waveSurfacePressure
waveTransmissive
wedge
zeroGradient
)


So yeah, those patchfield types are not in the list. How come an example from the same download doesn't work?


I'm running this on Windows 7 machine.

akashpatel95 March 3, 2020 15:07

Did you try "Allrun.pre" script?

matejfor March 3, 2020 17:01

This is strange and will be linked probably to the cross compilation. Can you please go to develop.openfoam.com and report new issue? The cross compilation needs to be checked.

jeffery0630 March 4, 2020 11:15

The Allrun script has a call to Allrun.pre.

#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------

./Allrun.pre

runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar

#------------------------------------------------------------------------------

adhiraj March 5, 2020 14:19

Is it possible that the library that contains the wall functions is not loaded when you launch reconstructPar?

In that case maybe including the library in the system/controlDict file might work. In my version, the required library can be added like this:
Code:

libs
(
    "libturbulenceModels.so"
);

Perhaps you can find something equivalent for your version and platform?

tt323 May 22, 2020 06:00

has anyone found a fix for this problem? I am using the same Mingw v1912 on Win10 x64.

i am trying to run a buoyantPimpleFoam solver after using decomposePar.

The simulation runs fine, but when i try to reconstructPar it shows a similar error message:

Quote:

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

Valid patchField types :

88
(
...
)

file: E:/OpenFOAM/v1912/msys64/home/ofuser/WS-v1912/run/examples/heatStore/6/processor0/0.25/T.boundaryField.exteriorWalls

From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = double]
in file /home/buzz2/pawan/OpenFOAM/mingw-windows/OpenFOAM-v1912/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 130.




All times are GMT -4. The time now is 22:57.