|
[Sponsors] |
January 18, 2011, 12:32 |
creating interface in openfoam
|
#1 |
New Member
vinesh
Join Date: Nov 2010
Posts: 2
Rep Power: 0 |
hello everyone,
Question1: I want to solve a simple problem with multiple meshes for example one mesh part is having inlet condition and other mesh region composed of out let. Let me know how to create "interface" for intended contact surfaces to transfer the flow data. We are generating mesh files in third party preprocessor. Fluent mesh files "****.msh" Question2: Multiple zones were created in ICEM CFD and mesh file exported in Fluent format " *.msh" Problem Description: Two ducts were connected as Y junction and after mixing the two streams, main stream has to pass through porous region. Query: separating faces between two successive zones are acting like walls. How can I convert them as interior or interface for such cases. thanks in advance |
|
January 18, 2011, 18:02 |
|
#2 |
New Member
|
Pretty easy if the mesh is coming from Fluent,
Open the .msh file, Goto header "Zone Sections", search the part name to be set as interior and change its prefix from wall to interior. Import the file to OpenFoam, and this part should now disappear out of boundary file... |
|
August 16, 2012, 18:12 |
|
#3 | |
Senior Member
|
Quote:
I am trying to do a similar task as vinesh said. actually I am converting a *.msh file which I have created with GAMBIT. I set boundary type of faces which I want to be interface as "interior" in GAMBIT and imported the mesh file using "fluent3DMeshToFoam" command into an openFOAM case. now my boundary file includes my 2 interface faces and type of them is considered as "patch". when I use checkMesh utility there is messages which says: "The mesh has multiple regions which are not connected by any face." now I want to connect multiple regions to each other. I tried to use splitMeshRegions -cellZones in order to split my mesh into multiple zones, but openFOAM needs the interface patches to be defined in 0 directory. 1) Is there any boundary type as interface in openFoam that I can use? 2) or is there any tool that can combine 2 faces on 2 different regions to be a single interface? briefly, how can I use interfaces (fluid to fluid) in openFOAM by importing an external mesh file? |
||
August 17, 2012, 19:54 |
|
#4 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi,
Try "mergeOrSplitBaffles" to see if it converts the interface into interior faces. This will write out the new mesh to a new time folder. Make sure you replace the old mesh with the new mesh. Pei-Ying |
|
August 17, 2012, 22:27 |
|
#5 | |
Senior Member
|
Quote:
"Writing 0 duplicate faces to faceSet" |
||
August 17, 2012, 22:42 |
|
#6 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi,
I thought that you have two regions and you wanted to merge the interface between the two regions so that there is only one region at the end. I guess this will not help you. Pei-ying |
|
August 17, 2012, 22:51 |
|
#7 |
Senior Member
|
Well I actually have two regions and I want to merge them so there is only one region ! but the problem is that I haven't merged 2 faces of 2 regions into one interface yet.
|
|
August 18, 2012, 00:34 |
|
#8 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi,
Now, I am really confused what you are trying to do. Can you post pictures or send me the mesh? Pei-ying |
|
August 18, 2012, 09:32 |
|
#9 | ||||||
Senior Member
|
Quote:
Here is the image of what I am doing: There are two volumes, one surrounding another. The bigger volume has its own interior faces which I have named them "interface_big" and the smaller one again has its own interior faces which I have named them "interface_small" in boundary file. they have been defined as patches. As you can see in the above image I have refined the mesh within the small volume. I want to merge these two volumes (stitching two interior faces of two volumes) into one by defining interface in openFOAM. Therefore I run the following command: Quote:
Quote:
Quote:
Quote:
checkMesh result: Quote:
amiraslanpoor.persiangig.com/stitchMesh.tar.gz |
|||||||
August 18, 2012, 09:43 |
|
#10 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi,
This is interesting. I will try to play with the mesh tomorrow. Peiying |
|
February 5, 2013, 00:03 |
|
#11 |
Member
Chris
Join Date: Aug 2012
Location: Calgary, Alberta, Canada
Posts: 77
Rep Power: 14 |
Hi,
Was there any conclusion to the issue? I'm faced with the same problem with the mesh I would like to use. |
|
February 8, 2013, 12:16 |
|
#12 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
Hi,
I'm currently facing the same problem too, with a much more complex geometry consisting of several parts though. Has any one of you found a solution yet? I checked Mojtaba.a's simple geometry and reproduced the same problem. One of my colleagues suggested splitting the interfaces into four separate planes. Hanging nodes seem to work just fine. I just checked that a few minutes ago with two differently discretized hexas (only mergeMeshes and stitchMesh; no simulation yet). Where can I upload the resulting pictures and case directories? Feel free to ask for them by mail! cutter Last edited by cutter; February 11, 2013 at 04:55. Reason: fixed typo; added image |
|
February 8, 2013, 12:47 |
|
#13 | |
Senior Member
|
Quote:
Well unfortunately I haven't found any solution yet. In fact I didn't follow it anymore. Is there any luck to run the simulation by separating the interfaces? By the way you can upload your resulting pictures as attachments in your post. |
||
February 11, 2013, 05:02 |
|
#14 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
hello,
how did you import your mesh ? because you need to know the name of the face you want to stitch, en each zone. the following may work (but depend how you import mesh), so not sure: 1) setToZones -noFlipMap 2) check if the boundary (so 2 boundary, one for each volume) you want to stitch are in polymesh/boundary. If not, add them with nFace =0 and startFace = nface+starFace of the last entry, and update the number, or use the "createPatch" tools. 3) createBaffles name_interface "(name_face_vol1 name_face_vol2)" 4) mergeOrSplitBaffles -split You may use AMI at your interface. regards, olivier Last edited by olivierG; February 11, 2013 at 05:04. Reason: add things |
|
February 11, 2013, 05:19 |
|
#15 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
Oh, tanks, it's that easy. I only noticed the button that allows to link external resources...
Yes, splitting the interfaces did the trick. I tried it with a simple L-shape and a cube: |
|
February 11, 2013, 16:21 |
|
#16 | |
Senior Member
|
I import it from a .msh file And I can find the desired face name in paraview. I will proceed your procedure and report the result.
Quote:
Tnx cutter |
||
February 12, 2013, 04:39 |
|
#17 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
Sorry, but the above sample was a little bit oversimplified. It worked like a charm due to the perfectly matching faces of both parts.
After refining the discretization of the cube I'm facing the same problems that have been observed in http://www.cfd-online.com/Forums/ope...o-patches.html . Executing mergeMeshes an running stitchMesh for the first time works without problems, the second run of stitchMesh fails: Code:
--> FOAM FATAL ERROR: Face 20350 reduced to less than 3 points. Topological/cutting error B. Old face: 2(7470 7486) new face: 2(7470 7486) From function void slidingInterface::coupleInterface(polyTopoChange& ref) const in file slidingInterface/coupleSlidingInterface.C at line 1795. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 Foam::slidingInterface::coupleInterface(Foam::polyTopoChange&) const in "/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdynamicMesh.so" #3 Foam::polyTopoChanger::topoChangeRequest() const in "/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdynamicMesh.so" #4 Foam::polyTopoChanger::changeMesh(bool, bool, bool, bool) in "/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdynamicMesh.so" #5 in "/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/stitchMesh" #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 in "/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/stitchMesh" |
|
June 20, 2022, 07:58 |
|
#18 |
New Member
Xiaowei
Join Date: Sep 2017
Location: Melbourne
Posts: 1
Rep Power: 0 |
Hi Mojtaba,
I am encounter the same problem as what you descriped, i.e. The mesh has multiple regions which are not connected by any face. I am also want to use the interface for the same (fluid to fluid) reason. Could you please tell me how you solve this problem ? Thanks so much !! Best |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to interface a Fortran thermodynamic tool with OpenFOAM? | Cyp | OpenFOAM Programming & Development | 31 | June 9, 2014 15:30 |
Sliding Interface in OpenFoam? | lordvon | OpenFOAM | 19 | January 7, 2011 18:32 |
OpenFOAM Training in Europe and USA | hjasak | OpenFOAM | 0 | August 8, 2008 06:33 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
CFX Solver Memory Error | mike | CFX | 1 | March 19, 2008 08:22 |