CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Mesh Generation in Salome

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2019, 09:51
Default Mesh Generation in Salome
  #1
Senior Member
 
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7
Raza Javed is on a distinguished road
Hello Everyone,

My question is related to salome and I am sorry that I am asking this question in this forum because I couldn't find any way to register in salome forum.

My geometry consists of one solid and this solid has one pipe engraved in it. I want to explode this pipe as a volume so that I can create a mesh of it, to model the fluid flow through it. Uptil now, I tried to do this, but I couldn't explode this pipe as a separate solid (volume).

Is there any possible to do this? I shall be very thankful for your help.

Thank you
Raza Javed is offline   Reply With Quote

Old   April 21, 2019, 10:24
Default
  #2
Senior Member
 
Join Date: Aug 2014
Location: UK
Posts: 213
Rep Power: 13
fresty is on a distinguished road
Hi. You may want to provide some snapshots or files to evoke help, especially when the query is about geometric aspects of your simulation.
fresty is offline   Reply With Quote

Old   April 21, 2019, 14:25
Default
  #3
Senior Member
 
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7
Raza Javed is on a distinguished road
Hello,

Thank you so much for your reply. I am attaching two images of my pipe geometry.

This pipe is engraved in one wall of one box. I exploded all the patches or portions of the wall as faces to take the pipe out of it.

Now I want to explode this pipe as a volume, so that I can model the fluid flow through it. because if I explode this pipe also as a face, then I can generate the mesh only at the surfaces of the pipe not inside the pipe.

Is there any possible way to do it? And how can I generate a mesh of the complete wall including this pipe?
Attached Images
File Type: jpg pipe.jpg (54.7 KB, 23 views)
File Type: jpg pipe1.JPG (115.3 KB, 19 views)
Raza Javed is offline   Reply With Quote

Old   April 21, 2019, 22:00
Default
  #4
Senior Member
 
Join Date: Aug 2014
Location: UK
Posts: 213
Rep Power: 13
fresty is on a distinguished road
So, I may not have fully understood what you're trying to do from the images but I'll go with what seems pragmatic. I assume you're looking at a way to generate three distinct domains: a meshed domain of solid wall, a meshed domain of solid pipe thickness, and a meshed domain of fluid control volume.

The wall domain could initially be built using thickness/ solid volume and then exploded in to faces, one of which would have a deboss of pipe outer surface.
The pipe domain could be generated by adding outer thickness to your surface part (pipe channel) and then exploded to generate a closed volume; just representing the thickness of the pipe
The fluid domain would be generated by exploding a solid pipe volume, unlike an open channel as you have in your images

The key is to generate these overlapping but separate geometries by faces forming closed/ fluid-tight/ control volumes, while maintaining dedicated surfaces for every part (think of physically assembling these parts; sharing topology but not surfaces). The process to do so in Salome or other CAD software may differ in convenience and length; nevertheless, is your prerogative.

Took a couple of minutes to put together a dummy representative assembly to illustrate better, in the images attached. There may be other workarounds or methods to achieve this but the core idea remains the same.


1.jpg

2.jpg
fresty is offline   Reply With Quote

Old   April 22, 2019, 06:55
Default
  #5
Senior Member
 
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7
Raza Javed is on a distinguished road
Hello,

Thank you so much for your reply.

The basic construction of the geometry is the same as you sent.

I have one box same like yours with one side/surface having a cut in the shape of pipe( as you have U-shape cut on the yellow box). And the top surface of the box (where you have U-shape cut) is covered with the simple plate to cover the cut.

So, from outside the complete geometry looks like a simple box. But inside this box, there is pipe shaped cut (with one inlet and one outlet). And I have attached the shape of the pipe earlier.

So now, the complete geometry consists of two regions patched together. One region is the solid with pipe cut on one surface, and the second region is the solid plate that is covering that surface of the first solid.

As per my understanding, I need to separate the complete geometry into three volumes,
1. Top solid (that contains the pipe)
2. bottom solid (covering plate)
3. Pipe

What I did is that I exploded the bottom solid as one volume and the top solid as another volume. Now I want to explode the pipe also as one volume, which I am unable to do because when I explode it, Salome doesn't give the option to do it as a solid. And I want the fluid to pass through this pipe, so I need to generate a mesh inside the pipe and also on the walls of the pipe, to check the fluid flow from each and every cell of the mesh.

The images you sent are quite close to the geometry I have, So I want to know what is the possible approach the generate the mesh for this kind of geometry.

I have tried to explain my case as good as I can. But if you need any further clarification, Please let me know.

Thank you
Raza Javed is offline   Reply With Quote

Old   April 22, 2019, 09:55
Default
  #6
Senior Member
 
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7
Raza Javed is on a distinguished road
And one more question I have here is that, How can we find the coordinates of a point in geometry in Salome?

for example, I have one box, and I want to know the (x,y,z) coordinates of some particular point of that box. What is the possible way to do this?

Thank you
Raza Javed is offline   Reply With Quote

Old   April 23, 2019, 08:55
Default
  #7
Senior Member
 
Join Date: Aug 2014
Location: UK
Posts: 213
Rep Power: 13
fresty is on a distinguished road
Quote:
Originally Posted by Raza Javed View Post
Hello,

Thank you so much for your reply.

The basic construction of the geometry is the same as you sent.

I have one box same like yours with one side/surface having a cut in the shape of pipe( as you have U-shape cut on the yellow box). And the top surface of the box (where you have U-shape cut) is covered with the simple plate to cover the cut.

So, from outside the complete geometry looks like a simple box. But inside this box, there is pipe shaped cut (with one inlet and one outlet). And I have attached the shape of the pipe earlier.

So now, the complete geometry consists of two regions patched together. One region is the solid with pipe cut on one surface, and the second region is the solid plate that is covering that surface of the first solid.

As per my understanding, I need to separate the complete geometry into three volumes,
1. Top solid (that contains the pipe)
2. bottom solid (covering plate)
3. Pipe

What I did is that I exploded the bottom solid as one volume and the top solid as another volume. Now I want to explode the pipe also as one volume, which I am unable to do because when I explode it, Salome doesn't give the option to do it as a solid. And I want the fluid to pass through this pipe, so I need to generate a mesh inside the pipe and also on the walls of the pipe, to check the fluid flow from each and every cell of the mesh.

The images you sent are quite close to the geometry I have, So I want to know what is the possible approach the generate the mesh for this kind of geometry.

I have tried to explain my case as good as I can. But if you need any further clarification, Please let me know.

Thank you
Are you constructing the geometry from scratch in Salome or importing it? If former, then it is a matter of constructing three individual solid volumes and exploding them OR constructing faces (more tedious). If latter, then most probably you'll end up with common faces and you would need to work on your imported geometry (copy faces) and create separated volumes. Once again, you would need to have unique faces for every domain (not a common face) even if the volumes share planes/ topology.

Nevertheless, it seems like you're clear about the concept of separating the volumes as well as the geometries you would need; you'll just have to follow through tutorials to achieve this. Same goes for mesh, there are tutorials available online for constructing meshes in multiple separated domains. If you still struggle to achieve the geometry you need, then may be share your Salome file here on the forum and hope that someone could have a look at it.
fresty is offline   Reply With Quote

Old   April 23, 2019, 08:57
Default
  #8
Senior Member
 
Join Date: Aug 2014
Location: UK
Posts: 213
Rep Power: 13
fresty is on a distinguished road
Quote:
Originally Posted by Raza Javed View Post
And one more question I have here is that, How can we find the coordinates of a point in geometry in Salome?

for example, I have one box, and I want to know the (x,y,z) coordinates of some particular point of that box. What is the possible way to do this?

Thank you
In the GUI, isn't it just: Menu Bar>Inspection>Point Coordinates..?
fresty is offline   Reply With Quote

Old   April 25, 2019, 08:08
Default
  #9
Senior Member
 
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7
Raza Javed is on a distinguished road
Thank you so much for your reply, it was helpful.


I have one question about "fvOptions" in Openfoam. I have asked this question in the forum before but didn't get a helpful reply. If you can help, I would be thankful.



I am trying to generate a heat source using Power of 10W using fvOptions file. So for this, I have given the value of 10 to "h" in fvOptions like below:

Code:
heatSource
{
    type            scalarSemiImplicitSource;
    active          true;
 
    scalarSemiImplicitSourceCoeffs
    {
        selectionMode   all; // all, cellSet, cellZone, points
       // cellZone        heatSrc;
        //cellSet         c1;
        volumeMode      absolute; // specific;
        injectionRateSuSp
        {
            h     (10 0);
        }
    }
}
I have read in this forum that If I need a power of say 10W, then I just need to put that value as "h (10 0)" in fvOptions and the volumeMode should be "absolute".


The temperature of my heat source is changing when I check it in paraview but I don't understand that how this power(W) is changing my temperature? What is the mathematical relationship between them? Also some people also say that this 'h' is Enthalpy, so I am confused that if this is enthalpy then how can I put my power directly in "h" ?


Also I went through the solver log file to see how solver reads the fvOtption file. And it shows the following:
Code:
    Adding fvOptions

Creating finite volume options from "constant/fvOptions"

Selecting finite volume options model type scalarSemiImplicitSource
    Source: heatSource
    - selecting all cells
    - selected 10599 cell(s) with volume 123000
What does this mean?
Code:
    - selected 10599 cell(s) with volume 123000
This value remains the same even if I change the value of "h" in my fvOptions file.




Thank you
Raza Javed is offline   Reply With Quote

Reply

Tags
mesh, pipe, salome meshing


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
[Salome] Problems for creating mesh in salome to OPENFOAM bye bye my blue OpenFOAM Meshing & Mesh Conversion 8 December 5, 2023 01:57
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
On body-fitted cartesian mesh generation sbaffini Main CFD Forum 0 October 21, 2016 11:32
[ICEM] Need urgent help for hybrid mesh generation Pursuor ANSYS Meshing & Geometry 1 August 29, 2012 17:04
checkMesh and decomposePar crashes with salome IDEAS mesh pajofego OpenFOAM 0 June 23, 2011 09:43


All times are GMT -4. The time now is 04:00.