CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   TopoSet with mesh from SALOME (https://www.cfd-online.com/Forums/openfoam-pre-processing/202420-toposet-mesh-salome.html)

charles4allme May 30, 2018 11:18

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.

simrego May 31, 2018 05:28

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).

charles4allme June 5, 2018 13:47

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

simrego June 5, 2018 15:23

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

charles4allme June 11, 2018 05:16

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

simrego June 11, 2018 05:27

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.

charles4allme June 11, 2018 07:52

Hi,

Thanks. Just seen it.

REgards

Ben UWIHANGANYE June 20, 2018 04:53

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!

charles4allme July 24, 2018 19:18

Quote:

Originally Posted by simrego (Post 695447)
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.

I know its been a while but hopefully you reply. I had other things so just getting back to this issue. First of all, I couldn't create the fluid regions on salome because its basically a vacuum and I created the other regions using solid and partitioned them in Salome. This gave me default patches also when I exported to openfoam. Is there anyway to get around this problem. I however decided to use toposet to create the fluid regions but I am struggling with understanding how the box in toposet works.I am not able to capture the fluid regions with the range of values for my x, y and z in toposet. Is this a problem of axis or is it an SI unit issue. Any advice would be appreciated.

Thanks

ing.nicola.dettole January 20, 2019 13:17

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.