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

Patch error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2024, 08:36
Default Patch error
  #1
New Member
 
Deny
Join Date: May 2024
Posts: 11
Rep Power: 2
Chintan-21 is on a distinguished road
Hello Guys,


I am running the helical pipe simulation using the kOmegaSST model, but when I try to run case it show the following error:


-> FOAM FATAL ERROR:
Invalid wall function specification
Patch type for patch walls must be wall
Current patch type is patch



From function virtual void Foam::nutWallFunctionFvPatchScalarField::checkType ()
in file derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.C at line 45.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::nutWallFunctionFvPatchScalarField::nutWallFu nctionFvPatchScalarField(Foam::fvPatch const&, Foam:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#3 Foam::nutkWallFunctionFvPatchScalarField::nutkWall FunctionFvPatchScalarField(Foam::fvPatch const&, Foam:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#4 Foam::fvPatchField<double>::adddictionaryConstruct orToTable<Foam::nutkWallFunctionFvPatchScalarField >::New(Foam::fvPatch const&, Foam:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#5 Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#6 Foam::GeometricBoundaryField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam:imensionedField<d ouble, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#7 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) at ??:?
#8 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields() at ??:?
#9 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) at ??:?
#10 Foam::eddyViscosity<Foam::RASModel<Foam::incompres sibleMomentumTransportModel> >::eddyViscosity(Foam::word const&, Foam::geometricOneField const&, Foam::geometricOneField const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::viscosity const&) at ??:?
#11 Foam::kOmegaSST<Foam::eddyViscosity<Foam::RASModel <Foam::incompressibleMomentumTransportModel> >, Foam::incompressibleMomentumTransportModel>::kOmeg aSST(Foam::word const&, Foam::geometricOneField const&, Foam::geometricOneField const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::viscosity const&) at ??:?
#12 Foam::RASModel<Foam::incompressibleMomentumTranspo rtModel>::adddictionaryConstructorToTable<Foam::RA SModels::kOmegaSST<Foam::incompressibleMomentumTra nsportModel> >::New(Foam::geometricOneField const&, Foam::geometricOneField const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::viscosity const&) at ??:?
#13 Foam::RASModel<Foam::incompressibleMomentumTranspo rtModel>::New(Foam::geometricOneField const&, Foam::geometricOneField const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::viscosity const&) at ??:?
#14 Foam::incompressibleMomentumTransportModel::adddic tionaryConstructorToTable<Foam::RASModel<Foam::inc ompressibleMomentumTransportModel> >::NewincompressibleMomentumTransportModel(Foam::g eometricOneField const&, Foam::geometricOneField const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::viscosity const&) at ??:?
#15 Foam::autoPtr<Foam::incompressibleMomentumTranspor tModel> Foam::momentumTransportModel::New<Foam::incompress ibleMomentumTransportModel>(Foam::incompressibleMo mentumTransportModel::alphaField const&, Foam::incompressibleMomentumTransportModel::rhoFie ld const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::viscosity const&) at ??:?
#16 Foam::incompressibleMomentumTransportModel::New(Fo am::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::viscosity const&) at ??:?
#17 Foam::solvers::incompressibleFluid::incompressible Fluid(Foam::fvMesh&) at ??:?
#18 Foam::solver::addfvMeshConstructorToTable<Foam::so lvers::incompressibleFluid>::New(Foam::fvMesh&) at ??:?
#19 Foam::solver::New(Foam::word const&, Foam::fvMesh&) at ??:?
#20 ? in "/opt/openfoam11/platforms/linux64GccDPInt32Opt/bin/foamRun"
#21 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#22 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#23 ? in "/opt/openfoam11/platforms/linux64GccDPInt32Opt/bi

After this error I change my boundary patch from polyMesh/boundary, but when i run the case, OpenFOAM automatically changes walls patch to patch.

here I am attaching the whole case file.


Many Thanks in advance
Attached Files
File Type: zip Labcoil_2k.zip (54.3 KB, 1 views)
Chintan-21 is offline   Reply With Quote

Old   June 27, 2024, 03:33
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,169
Rep Power: 27
Yann will become famous soon enough
Hello,

Quote:
Originally Posted by Chintan-21 View Post
After this error I change my boundary patch from polyMesh/boundary, but when i run the case, OpenFOAM automatically changes walls patch to patch.
If you are changing the boundary file and then run again your Allrun script, it will run gmshToFoam again, which will overwrite the polyMesh directory, hence overwriting your change. After modifying your boundary file you only need to run foamRun.

Or you can use the changeDictionary utility to automatically update your boundary file, and you'll have to add it in your Allrun script just before foamRun.

Regards,
Yann
Yann 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
UDF for mean residence time JA_95 FLUENT 9 November 19, 2023 23:36
long error when using make-install SU2_AD. tomp1993 SU2 Installation 3 March 17, 2018 06:25
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 20:09.