|
[Sponsors] |
May 27, 2016, 14:23 |
Coupling patches in chtMultiRegionSimpleFoam
|
#1 |
Member
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 13 |
Hello to everyone!
I am running a case with chtMultiRegionSimpleFoam in which i have 4 different regions: 3 are solid and 1 is fluid. I've created a mesh for each region separately - each region has its own polyMesh - and generated the meshes by means of blockMesh -region. I've assigned a compressible::turbulentHeatFluxTemperature boundary condition on the external wall of a solid region - which is a boundary patch - and now i am wandering what should i assign to the internal wall of the same region and to the corresponding patch of the fluid region (the 2 patches that sould be coupled). I see that i cannot use compressible::turbulentTemperatureCoupledBaffleMix ed since it requires mapping - i went through the planeWall2D tutorial, but as i said i generated 4 different meshes instead of mapping one. What should i assign to the fluid/solid patches in the 0/T file? Thanks in advance! |
|
May 31, 2016, 06:59 |
|
#2 |
Member
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 13 |
No one can help?
|
|
May 31, 2016, 10:06 |
|
#3 |
New Member
flanel
Join Date: Apr 2016
Posts: 8
Rep Power: 10 |
Hey! First of all: What OF-Version do you use? I had similar problems in the past, but then I detected gmsh and I created one big mesh with all regions. I assigned all relevant patches to physical surfaces; except for the boundary patches. If you assign physical volumes, in OF with
Code:
splitMeshRegions -cellZones -overwrite |
|
May 31, 2016, 10:11 |
|
#4 |
Member
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 13 |
Hi! I use the 3.0.1 version.
I know there is that possibility, but since i already modelled the different regions i wanted to figure out if there is a possibility of coupling the patches in another way. |
|
May 31, 2016, 11:43 |
|
#5 |
New Member
flanel
Join Date: Apr 2016
Posts: 8
Rep Power: 10 |
But i do not understand, why you cannot use
Code:
compressible::turbulentTemperatureCoupledBaffleMix ed |
|
May 31, 2016, 11:48 |
|
#6 |
Member
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 13 |
I've tried to apply that patch to both the solid and fluid region as in the planeWall2D case, but i receive the following error:
Code:
--> FOAM FATAL ERROR: patch type 'wall' not type 'mappedPatchBase' |
|
May 31, 2016, 12:09 |
|
#7 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
This error means that in the boundary file under constant/polyMesh, the highlighted patch has been specified as 'wall', while the compressible::turbulentTemperatureBaffleMixed is only available (again from the error message) if the type is 'mappedPatchBase'. So change the type to 'mappedPatchBase' in the boundary file and at the very least, this error message will be removed. Hope this helps. Cheers, Antimony |
|
May 31, 2016, 12:25 |
|
#8 |
Member
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 13 |
Hello and thanks for the suggestion. Unfortunately it is the first thing i did but then i receive the following error:
Code:
--> FOAM FATAL ERROR: patch type 'genericPatch' not type 'mappedPatchBase' for patch walls of field T in file "/home/nikola/OpenFOAM/nikola-3.0.1/PhD/receiverMultiRegion4/0/moltenSalt/T" |
|
June 1, 2016, 04:30 |
|
#9 |
New Member
flanel
Join Date: Apr 2016
Posts: 8
Rep Power: 10 |
Do you have different Meshes in your constant/ folder? So chance the "mapped" in the constant/meshXX/boundary to "mappedWall". This has to be done for all meshes involved!
|
|
June 8, 2016, 07:48 |
|
#10 |
Member
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 13 |
Sorry for the late answer.
I tried to change to mappedWall in the various constant/regionX/polyMesh/boundary files, but now I receive the following error: Code:
--> FOAM FATAL IO ERROR: keyword sampleMode is undefined in dictionary ".walls" file: .walls from line 34 to line 37. |
|
June 21, 2016, 12:42 |
|
#11 |
Member
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 13 |
Some one can help please?
|
|
July 12, 2016, 04:50 |
Same issue
|
#12 |
Member
Sing
Join Date: Jan 2016
Posts: 30
Rep Power: 10 |
Hello Nikola,
I also created a very complex geometry of a ladle which is used in Steel operations. I already made different regions using blockMesh. Then I saw the plane2D wall case example for chtMultiRegionSimpleFoam. Then I tried to modify my mesh files so the format matches with the example. But when I run this case I too get the same error: patch type 'genericPatch' not type 'mappedPatchBase' in the T file for the mappedWall zone1_to_zone2. I used type compressible::turbulentTemperatureCoupledBaffleMix ed; Tnbr T; kappa fluidThermo; kappaName none; value uniform 1873; for the same. I am clueless. One possible solution I can think is to recreate the whole geometry using snappyhex and let splitMeshRegions -cellZones -owerwrite define all the boundaries between the different regions. ie (zone0_to_zone1, etc) Any help would be greatly appreciated! Thanks and regards, Singh. |
|
July 15, 2016, 15:47 |
|
#13 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
The answer has already been given. Change your patch type in all constant/meshXX/boundary files from wall to mappedWall.
As for Nkl issue. Here is an example from the tutorials: Code:
bottomAir_to_leftSolid { type mappedWall; nFaces 130; startFace 4680; sampleMode nearestPatchFace; sampleRegion leftSolid; samplePatch leftSolid_to_bottomAir; } |
|
July 19, 2016, 03:24 |
Problem still persists
|
#14 | |
Member
Sing
Join Date: Jan 2016
Posts: 30
Rep Power: 10 |
Quote:
First of all my gratitude for your answer. Yes I have already modified the wall type to mappedWall; I have tried a number of things here but still same error appears. I have used a format like this for all the boundaries: Code:
domain1_to_domain0 { type mappedwall; inGroups 1(wall); nFaces 4000; startFace 236000; sampleMode nearestPatchFace; sampleRegion domain0; samplePatch domain0_to_domain1; } I would be very grateful if you may please point that out. I have also posted the whole problem, it might be useful to understand the whole case. Please take a look: http://www.cfd-online.com/Forums/ope...blockmesh.html My deepest thanks and regards, Prateek Singh. |
||
November 9, 2020, 06:37 |
|
#15 | |
Member
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13 |
Quote:
Thanks a lot. Will it be possible to use the Y+utility to find yplus values for solid walls in contact with fluid in conjugate heat transfer problems (for the mappedWalls) ?for example chtMultiRegionSimpleFoam cases etc ? thanks |
||
November 9, 2020, 07:14 |
|
#16 | |
Member
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13 |
Quote:
thanks |
||
November 2, 2021, 09:43 |
|
#17 |
New Member
Lorenzo
Join Date: Feb 2021
Posts: 3
Rep Power: 5 |
mappedWall;
|
|
May 19, 2023, 10:23 |
|
#18 |
New Member
Adrian
Join Date: Dec 2015
Location: Germany
Posts: 6
Rep Power: 10 |
First of all: Super helpful thread and thanks to those responding! However, I have a follow-up question:
Is it possible to map patch a from region A to multiple patches 1, 2, 3 in region B or do I have to always create perfectly matching patches in both regions? Best, Henrinavier |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
Possible bug with stitchMesh and cyclics in OpenFoam | Jack001 | OpenFOAM Pre-Processing | 0 | May 21, 2016 09:00 |
[blockMesh] Merging edge patches | Yosmcer | OpenFOAM Meshing & Mesh Conversion | 11 | November 16, 2014 15:51 |
[swak4Foam] groovyBC for coupling of patches | deniggo | OpenFOAM Community Contributions | 20 | October 2, 2014 19:04 |