CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

TopoSet with mesh from SALOME

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By simrego

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2018, 12:18
Default TopoSet with mesh from SALOME
  #1
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
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.
Attached Images
File Type: jpg image.jpg (34.1 KB, 44 views)
charles4allme is offline   Reply With Quote

Old   May 31, 2018, 06:28
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
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).
simrego is offline   Reply With Quote

Old   June 5, 2018, 14:47
Default
  #3
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
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
charles4allme is offline   Reply With Quote

Old   June 5, 2018, 16:23
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
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
simrego is offline   Reply With Quote

Old   June 11, 2018, 06:16
Default
  #5
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
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
charles4allme is offline   Reply With Quote

Old   June 11, 2018, 06:27
Default
  #6
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
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.
simrego is offline   Reply With Quote

Old   June 11, 2018, 08:52
Default
  #7
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
Hi,

Thanks. Just seen it.

REgards
charles4allme is offline   Reply With Quote

Old   June 20, 2018, 05:53
Default mapping a cylinder using topoSetDict
  #8
Member
 
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 8
Ben UWIHANGANYE is on a distinguished road
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!
Attached Files
File Type: gz ibcylinder.tar.gz (3.9 KB, 6 views)
Ben UWIHANGANYE is offline   Reply With Quote

Old   July 24, 2018, 20:18
Default
  #9
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
Quote:
Originally Posted by simrego View Post
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
charles4allme is offline   Reply With Quote

Old   January 20, 2019, 14:17
Default
  #10
New Member
 
Nicola D'Ettole
Join Date: Nov 2018
Posts: 12
Rep Power: 7
ing.nicola.dettole is on a distinguished road
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?
ing.nicola.dettole is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 08:34
Salome cgns format mesh to SU2 JPBLourenco SU2 19 November 18, 2019 03:11
[Other] conformed FSI mesh for unstructured fluid region ashish.svm OpenFOAM Meshing & Mesh Conversion 10 August 2, 2019 09:40
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 08:05


All times are GMT -4. The time now is 20:54.