MergePatchPairs within 2 pipes
Hello everybody, I'm trying to build a Mesh on 2 pipes, where one vertical pipe cuts the horizontal one. The Mesh actually works fine but the mergePatchPairs adjustment does not. I picked the horizontal one to be the master. But actually OpenFoam does it visa versa and rather stretches the vertical pipe instead of shortening it.
Any help or hints will be appreciated.
Enclosed you'll find the code.
it will not work this way. On the one hand the two pipes are not allowed to penetrate each other, on the other hand the contact surface between them must be exact.
It is possible to mesh your geometry with blockMesh, but it will be a really big effort.
You can use Salome for meshing these pipes.
I finally got Salome and was working hard to get those two pipes connected.
Getting the geometries is not that hard. But unfortunately my mesh is not good.
The problem is that vertices of one pipe are in volumes of others.
In order to get the vertices projected on the second pipe I played around with the "Cut" commands. But when I do that I get more and more errors. And the Repair functions won't help on that one.
So maybe you have an idea of what to do to get a "good" mesh.
In order to avoid sharp angles, I created cuboids inside the pipes.
One mesh/geometry version is attached.
It would be very kind if you could help me out once again.
Of course if someone else has a hint, I would appreciate that aswell.
Oh well, although I used "Dump Study" to put out the .py file. It seems that the Mesh is not loaded. But you just have to do the "Create Mesh" on "Compound 3" 3D Hexaeder and that's it.
here are some comments... first of all: congratulations to your already gained experience in Salome!
If you want to keep your strategy (which would work in the end), you must rethink the block structure at the intersection of your two pipes. The topology must be correct here, too, so many more blocks are necessary. The smaller pipe's blocks must "penetrate" the bigger pipe, and the bigger pipe must form a "hole" around these blocks...
Ah, instead of providing the python dump you should save the study in .hdf format, I think.
Another way to get a cute mesh is this:
To keep things simple you only need Cylinder_1 and Cylinder_2 of your entities. Use the Operations->Boolean->Fuse operation to fuse them into one solid object. Explode the faces from this Fuse_1 object and name the faces like "inlet", "outlet", "wall" etc.
Then switch to the Meshing module and use the "Assign a set of hypothesis" function with "3D automatic Tetrahedralization" strategy. Use a global size of 7.5 or even smaller and compute the mesh.
Use the Mesh->Create Groups from Geometry function, and select the faces you exploded in the Geometry module.
Export the tetra mesh in .UNV format.
Use ideasUnvToFoam to convert the mesh. You will get a fine tetrahedral mesh, which will work fine. However you can improve it (and reduce the computational time, too) by converting it to a polyDualMesh:
polyDualMesh 75 -doNotPreserveFaceZones -concaveMultiCells -overwrite
You may want to transform your mesh to meters before starting the simulation with:
transformPoints -scale "(0.001 0.001 0.001)"
If you provide your email (via board mail) I can send you the intermediate steps.
first of all: I sent you my email via board mail.
I tried to upload the .hdf file, but since its size is more than 1 MegaByte, it is not allowed to do so. Thus, I uploaded the .py file ;)
Your ("other") way seems to work quite good. I want a hexahedral mesh by the way, but that won't be a great problem. That was also the reason why I had put some cuboids into the pipe.
I already did a mesh conversion to OpenFOAM for a simple pipe (with boundary i.e. inlet, wall...), so at least this works for me for now ^^ But don't worry, I'll stay patient. Because with every step you go further, CFD is more fun to work with.
It would be very kind of you if you would send me the intermediate steps. I guess integrating the cuboids won't be a big problem then. Therefor, would you make two Partitions of the Cylinder_1 & Hexahedral_Solid_1 and of course Cylinder_2 & Hexahedral_Solid_2 and then "Fuse" those two Partitions to finally do the other steps you said?
|All times are GMT -4. The time now is 02:20.|