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

PatchField Entry error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By CHUMMAR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2021, 04:16
Question PatchField Entry error
  #1
Member
 
Amal Chummar
Join Date: May 2021
Posts: 31
Rep Power: 5
CHUMMAR is on a distinguished road
I am very new to OpenFoam and am trying to use chtmultiregionfoam to validate a conjugate numerical problem. I have been able to successfully run blockMesh, topoSet and splitMeshRegions -cellZones -overwrite. but as soon as i type in chtMultiRegionFoam to try and run the problem I face this error which is "cannot find patchField entry for frontAndBack"

BlockMeshDict :-
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
(-0.2 0 0)
(1 0 0)
(1 1 0)
(-0.2 1 0)
(-0.2 0 1)
(1 0 1)
(1 1 1)
(-0.2 1 1)
);

blocks
(
hex (0 1 2 3 4 5 6 7) fluid (20 20 10) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(4 0 3 7)
);
}
outlet
{
type patch;
faces
(
(5 1 2 6)
);
}
frontAndBack
{
type wall;
faces
(
(0 1 2 3)
(4 5 6 7)
);
}
topAndBottom
{
type wall;
faces
(
(0 1 5 4)
(3 2 6 7)
);
}
);

mergePatchPairs
(
);

topoSetDict :-
actions
(

{
name c0;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-0.2 0 0) (0 1 1);
}
}
{
name solid;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{ set c0; }
}
{
name c1;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (0 0 0) (1 1 1);
}
}
{
name fluid;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{ set c1; }
}



);

ERROR :-
Create time

Create fluid mesh for region fluid for time = 0

Create solid mesh for region solid for time = 0

*** Reading fluid mesh thermophysical properties for region fluid

Adding to thermoFluid

Selecting thermodynamics package
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}

Adding to rhoFluid

Adding to UFluid



--> FOAM FATAL IO ERROR:
Cannot find patchField entry for frontAndBack

file: /home/chummarvm/OpenFOAM-dev/tutorials/heatTransfer/chtMultiRegionFoam/newtest/0/fluid/U.boundaryField from line 27 to line 32.

From function void Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::readField(const Foam:imensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]
in file /home/ubuntu/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 188.

FOAM exiting
CHUMMAR is offline   Reply With Quote

Old   May 28, 2021, 04:40
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Amal,

Code:
--> FOAM FATAL IO ERROR:
Cannot find patchField entry for frontAndBack

file:  /home/chummarvm/OpenFOAM-dev/tutorials/heatTransfer/chtMultiRegionFoam/newtest/0/fluid/U.boundaryField  from line 27 to line 32.
The solver cannot find the boundary condition for "frontAndBack" for U in the "fluid" region.


Do you have a boundary condition defined for this patch?
Can you post your U file for the "fluid" region? (0/fluid/U)


Yann
Yann is offline   Reply With Quote

Old   May 28, 2021, 04:53
Post 0/fluid/u
  #3
Member
 
Amal Chummar
Join Date: May 2021
Posts: 31
Rep Power: 5
CHUMMAR is on a distinguished road
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0/fluid";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform (0 0 0);

boundaryField
{

outlet
{
type pressureInletOutletVelocity;
value $internalField;
}
fluid_to_solid
{
type noSlip;
}
}

I am trying to solve a buoyancy driven flow related heat transfer problem and so kept the T file as the main one describing all boundaries.

dimensions [ 0 0 0 1 0 0 0 ];

internalField uniform 300;

boundaryField
{

outlet
{
type inletOutlet;
value $internalField;
inletValue $internalField;
}

frontAndBack
{
type zeroGradient;
}

topAndBottom
{
type zeroGradient;
}

fluid_to_solid
{
type compressible::turbulentTemperatureCoupledBaffleMix ed;
value $internalField;
Tnbr T;
kappaMethod fluidThermo;
}
}

Since I am very new to OpenFOAM pls forgive me for any silly errors.
CHUMMAR is offline   Reply With Quote

Old   May 28, 2021, 05:02
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
For every variable, you need to define a boundary condition on each patch in your domain.



This is what the solver complains about in your initial post.


Cheers,
Yann
Yann is offline   Reply With Quote

Old   June 1, 2021, 01:50
Talking Got it running without errors!
  #5
Member
 
Amal Chummar
Join Date: May 2021
Posts: 31
Rep Power: 5
CHUMMAR is on a distinguished road
Thanks Yann, that was the problem
Yann likes this.
CHUMMAR is offline   Reply With Quote

Old   June 5, 2021, 02:44
Default chtMultiRegionFoam error running
  #6
New Member
 
Ludovico
Join Date: Jun 2021
Posts: 12
Rep Power: 5
rideste is on a distinguished road
I'm new in OpenFoam; i'm trying to simulate an heatexchanger tube in tube counter-current air-co2 with a strate of alluminium interposed. I use chtMultiRegionFoam with wall function for y+>30. But when run the simulation at the time=1 there are negative Temperature, so at time=2 give me an error.
I try with fvOptions limiter, but the calculus are very pertub with limiters and diverge.
Someone can help me?
Attached Images
File Type: jpg foamError.jpg (69.4 KB, 19 views)
rideste is offline   Reply With Quote

Old   June 8, 2021, 05:04
Default
  #7
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Can you share more about you case setup, especially the boundary conditions you are using?


The log shows big continuity error so my first thought would be that something could be wrong about the boundary conditions.


Yann
Yann is offline   Reply With Quote

Old   June 8, 2021, 06:15
Default
  #8
New Member
 
Ludovico
Join Date: Jun 2021
Posts: 12
Rep Power: 5
rideste is on a distinguished road
used low-Re funcition, mesh wit y+<2.
I try to share file 0/air.
file of co2 is analogus, while in file of alluminium there is p,T with mixedcoupledbaff..... function.
I can't upload files U,alphat,nut.
alphat is all calculated.
nut is all calcultated with lowRe wallFunction.
U fixedvalue inlet, zeroGradient outlet and noSlip on walls.
Attached Files
File Type: txt k.txt (1.1 KB, 2 views)
File Type: txt omega.txt (1.1 KB, 0 views)
File Type: txt p_rgh.txt (1.1 KB, 3 views)
File Type: txt T.txt (1.2 KB, 3 views)

Last edited by rideste; June 8, 2021 at 06:39. Reason: Upload files.txt
rideste is offline   Reply With Quote

Old   June 8, 2021, 06:25
Default
  #9
New Member
 
Ludovico
Join Date: Jun 2021
Posts: 12
Rep Power: 5
rideste is on a distinguished road
how i can upload openfoam files?
rideste is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam


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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 10:30


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