CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2018, 14:00
Post --> FOAM FATAL IO ERROR: Unknown patchField type freestreamVelocity for patch type pa
  #1
New Member
 
Vikram Rajagopalan
Join Date: Nov 2018
Posts: 11
Rep Power: 7
vikramrajagopalan is on a distinguished road
Trying to solve the aerofoilNACA0012 tutorial with the rhoSimpleFoam solver and getting this error, any suggestions on how to fix this?
vikramrajagopalan is offline   Reply With Quote

Old   November 13, 2018, 17:43
Default
  #2
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
Can you show us the 0/U file?
anon_q is offline   Reply With Quote

Old   November 13, 2018, 18:02
Default 0/U file
  #3
New Member
 
Vikram Rajagopalan
Join Date: Nov 2018
Posts: 11
Rep Power: 7
vikramrajagopalan is on a distinguished road
Here it is --

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Uinlet (250 0 0);

dimensions [0 1 -1 0 0 0 0];

internalField uniform $Uinlet;

boundaryField
{
freestream
{
type freestreamVelocity;
freestreamValue uniform $Uinlet;
value uniform $Uinlet;
}

wall
{
type noSlip;
}

#includeEtc "caseDicts/setConstraintTypes"
}

// ************************************************** *********************** //
vikramrajagopalan is offline   Reply With Quote

Old   November 14, 2018, 09:42
Default
  #4
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
Can you please post the constant/polyMesh/boundary file.

I think you made a mistake in this file, check if the type of freestream boundary condition is "patch" not "pa"
anon_q is offline   Reply With Quote

Old   November 14, 2018, 12:34
Default
  #5
New Member
 
Vikram Rajagopalan
Join Date: Nov 2018
Posts: 11
Rep Power: 7
vikramrajagopalan is on a distinguished road
boundary file. My error message had more characters than allowed in the title so it cut it off to "pa"

I didn't make any changes to any of the files, I just opened the tutorial and ran 'blockMesh' and then 'rhoSimpleFoam' and that was the message

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

5
(
aerofoil
{
type wall;
inGroups 1(wall);
nFaces 120;
startFace 31760;
}
inlet
{
type patch;
inGroups 1(freestream);
nFaces 200;
startFace 31880;
}
outlet
{
type patch;
inGroups 1(freestream);
nFaces 160;
startFace 32080;
}
back
{
type empty;
inGroups 1(empty);
nFaces 16000;
startFace 32240;
}
front
{
type empty;
inGroups 1(empty);
nFaces 16000;
startFace 48240;
}
)

// ************************************************** *********************** //
vikramrajagopalan is offline   Reply With Quote

Old   November 14, 2018, 12:53
Default
  #6
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
Please provide the full error message (or the case if possible). Without that, it is "guess what's wrong" game.

In your 0/U, freestream is a name of a patch, but in constant/polyMesh/boundary, there is no patch with that name?!!!
anon_q is offline   Reply With Quote

Old   November 14, 2018, 13:06
Default
  #7
New Member
 
Vikram Rajagopalan
Join Date: Nov 2018
Posts: 11
Rep Power: 7
vikramrajagopalan is on a distinguished road
Sorry about that - here's the entire error --
ran blockMesh first and then rhoSimpleFoam. Is there something else I need to be doing?


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


SIMPLE: convergence criteria
field p tolerance 0.0001
field U tolerance 0.0001
field "(k|omega|e)" tolerance 0.0001

Reading thermophysical properties

Selecting thermodynamics package
{
type hePsiThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleInternalEnergy;
}

Reading field U



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

Valid patchField types are :

82
(
SRFFreestreamVelocity
SRFVelocity
SRFWallVelocity
activeBaffleVelocity
activePressureForceBaffleVelocity
advective
atmBoundaryLayerInletVelocity
calculated
codedFixedValue
codedMixed
cyclic
cyclicACMI
cyclicAMI
cyclicSlip
cylindricalInletVelocity
directionMixed
empty
externalCoupled
extrapolatedCalculated
fixedGradient
fixedInternalValue
fixedJump
fixedJumpAMI
fixedMean
fixedNormalInletOutletVelocity
fixedNormalSlip
fixedProfile
fixedShearStress
fixedValue
flowRateInletVelocity
flowRateOutletVelocity
fluxCorrectedVelocity
freestream
inletOutlet
interstitialInletVelocity
kqRWallFunction
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mappedFlowRate
mappedVelocityFlux
matchedFlowRateOutletVelocity
mixed
movingWallVelocity
noSlip
nonuniformTransformCyclic
outletInlet
outletMappedUniformInlet
outletPhaseMeanVelocity
partialSlip
pressureDirectedInletOutletVelocity
pressureDirectedInletVelocity
pressureInletOutletParSlipVelocity
pressureInletOutletVelocity
pressureInletUniformVelocity
pressureInletVelocity
pressureNormalInletOutletVelocity
processor
processorCyclic
rotatingPressureInletOutletVelocity
rotatingWallVelocity
sliced
slip
supersonicFreestream
surfaceNormalFixedValue
swirlFlowRateInletVelocity
swirlInletVelocity
symmetry
symmetryPlane
timeVaryingMappedFixedValue
translatingWallVelocity
turbulentInlet
uniformFixedGradient
uniformFixedValue
uniformInletOutlet
uniformJump
uniformJumpAMI
variableHeightFlowRateInletVelocity
waveTransmissive
wedge
zeroGradient
)


file: /mnt/d/OpenFOAM/OpenFOAM-v1806/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012_1/0/U.boundaryField.freestream from line 27 to line 17.

From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam:imensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
in file /home/ubuntu/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 134.

FOAM exiting
vikramrajagopalan is offline   Reply With Quote

Old   November 14, 2018, 13:19
Default Link to all files
  #8
New Member
 
Vikram Rajagopalan
Join Date: Nov 2018
Posts: 11
Rep Power: 7
vikramrajagopalan is on a distinguished road
https://drive.google.com/open?id=1no...FwyWePLWCExmTu
vikramrajagopalan is offline   Reply With Quote

Old   November 14, 2018, 13:37
Default
  #9
Member
 
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 13
gkarlsen is on a distinguished road
You are running a v-1806 tutorial in an Openfoam 5.0 environment. Openfoam 5.0 does not have the BC freestreamVelocity, hence the error.
gkarlsen is offline   Reply With Quote

Old   November 14, 2018, 13:48
Default
  #10
New Member
 
Vikram Rajagopalan
Join Date: Nov 2018
Posts: 11
Rep Power: 7
vikramrajagopalan is on a distinguished road
Oh that's what it is. Thanks Geir and Evren!
vikramrajagopalan is offline   Reply With Quote

Old   November 14, 2018, 13:54
Default
  #11
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
That works for OpenFOAM 6 but not for OpenFOAM 5
anon_q is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 01:47
Modified pimpleFoam solver to MRFPimpleFoam solver hiuluom OpenFOAM Programming & Development 12 June 14, 2015 21:22
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 17:08
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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