TopoSet with mesh from SALOME
1 Attachment(s)
Hello guys,
I don't know if this is the right place to post this but I have been looking for answers and have not found anything. I exported my mesh from salome to openfam. I am working on a case regarding multiple regions and using the toposetDict, I have split the region. However, on paraview, when I look at the individual cell sets, I don't get a smooth surface, how can I correct this, or if this is not the right forum can I be directed to where I can get some answers. Attached is a thumbnail of what paraview gives me. |
Hi!
It won't be the perfect help, but in SALOME you can mark the cellZones for the different regions. Then you can export to ideas (UNV), import into OpenFOAM, and you can simply use splitMeshRegions -cellZones. Maybe if you create volume groups for the different regions it will assign different cellZones for them, but honestly I don't remember the steps exactly, but I know you can do it (I did it a long time ago). |
Hi simrego;
Thank you for your reply. How would I mark the cellzones in salome. So instead creating face groups on salome, I create volume groups. Wouldn't that be a problem when I want to export to OpenFOAM? Regards, charles |
Hi!
I just tried it. You just have to generate your mesh, then in the mesh create the groups (you will have volume groups in the generated mesh). Then export to UNV Then you can import into openFOAM with ideasUnvToFoam Then you will have your cellzones, so you can use splitMeshRegions directly to the imported mesh |
Hello,
I have not had a chance to try your method as I have been quite busy with other stuff. To avoid my post getting old before I try your method and you not replying, I just want to ask this quick question. My suspicion is that OPenFOAM only allows face groups. Wouldn't that be a problem if am creating groups using volume. And is it actually called volume groups. I thought it would be made from the solid parts so it should be called solid groups. Best regards |
Hi!
OpenFOAM supports volume groups. Volume group means volumes (cells) in a group. It can be fluid, solid, doesn't matter. You just have to sign the cells which are in the same region, so you can split the mesh into the regions. Then you can give them any material properties, names, etc. as you wish. |
Hi,
Thanks. Just seen it. REgards |
mapping a cylinder using topoSetDict
1 Attachment(s)
Hello Foamers,
i need your assistance, it may sound easy for you but it has challenged me a lot as beginner. I want to map a cylinder on my fluid domain created using blockMesh. The fluid domain has one block as you may see it bellow: FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 0.1; vertices ( (200 -50 0) (200 50 0) (-25 50 0) (-25 -50 0) (200 -50 1) (200 50 1) (-25 50 1) (-25 -50 1) ); blocks ( hex (0 1 2 3 4 5 6 7) (100 225 1) simpleGrading (1 1 1) ); edges ( ); boundary ( inlet { type patch; faces ( (2 3 7 6) ); } outlet { type patch; faces ( (0 1 5 4) ); } topAndBottom { type patch; faces ( (1 2 6 5) (0 3 7 4) ); } frontAndBack { type empty; faces ( (0 1 2 3) (4 5 6 7) ); } ); mergePatchPairs ( ); // ************************************************** *********************** // I have been reading online posts and thought that topoSetDict using cylinderTocell can help to map that cylinder in that Cartesian grid. the cylinder i want has: radius: 0.25; p1 (0 0 0), p2 (0 0 1). May you help to know what i am missing in the attached commpressed case setup, i am not getting that cylinder after ./Allrun in paraview? I will appreciate you support. Best regard! |
Quote:
Thanks |
HI,
volume groups for cellZones have to be in the same fused solid, in a partiton whit common interfaces or in a compound with independent surfaces? |
All times are GMT -4. The time now is 04:20. |