CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] sHM internalflow (icoFoam)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2012, 15:49
Default sHM internalflow (icoFoam)
  #1
New Member
 
Senol
Join Date: Aug 2011
Posts: 7
Rep Power: 14
senol is on a distinguished road
Hi all foamers;

I have a problem with sHM. I am a new one in this foam job,so could not figure it out. I have a cylinder that created in Solidworks as three parts (montajİnlet,montajOutlet,montajSilindir). they converted to stl and I get a good mesh with snappyhexmesh. I tried to use icoFoam to see internal flow in my cylinder but i couldnot get any results .I need to see p and U profiles of my cylinder, where can I define my outlet and inlet parts in solver and how should I define?

I tried to define in p and U dictionaries in 0 fold. I wrote as;

for instance in p:

montajİnlet
{
type zeroGradient;
}

montajOutlet
{
type fixedValue;
value uniform 0;
}


But this didnt work; OF did not recognize internal flow. In addition in my boundary file allBoundary is defined, yet dont need it, what should I do to it not to paticipate in solving.


Sorry for English mistakes
senol is offline   Reply With Quote

Old   July 10, 2012, 09:48
Default
  #2
New Member
 
Mike Jaworski
Join Date: Jul 2012
Location: New Jersey
Posts: 6
Rep Power: 13
Jaworski.Mike is on a distinguished road
Hi senol,
sHM renames patches depending on how the STL file "solid" regions are named. Usually it'll end up something like montajInlet_<solidName>. if you grep the stl file for "solid", you'll see what they have been named.

Another option is to create a logfile of the sHM run and look at exactly what patches are created. It is under a section called "Adding patches for surface regions" and has a listing for the different STL files and what names they've been given (i.e. montajInlet_<solidName>).

If you look at the snappyMultiRegionHeater tutorial (heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater) and run it, you can see in the logfile that it has created things like "bottomAir_minX". If you "grep solid bottomAir.stl" you'll find all those patches named in the STL file.

Once you've found your patch names, then you can set up the boundary conditions using those names.

I hope this helps.

-Mike
Jaworski.Mike is offline   Reply With Quote

Old   July 11, 2012, 09:59
Default
  #3
New Member
 
Senol
Join Date: Aug 2011
Posts: 7
Rep Power: 14
senol is on a distinguished road
Hi mike,

Firstly thank you for your reply. Problem is solved. But now i have much more harder problem and i hope you know its solution, too. I built a 3d mesh for circular pipe using snappyhexmesh and I want to use icoFoam. I copied necessery files from a working case of square profile pipe except the 3d circular mesh. But the solution does not converge. The courant number gets bigger very fast. I can upload the case files including the mesh if necessary.

Briefly, I am trying to solve a simple pipe flow using a mesh obtained from snappyhexmesh but it does not converge. Any help is appreciated. It would also be very good if a sample pipe flow case is referred.
senol is offline   Reply With Quote

Old   July 12, 2012, 09:25
Default
  #4
New Member
 
Mike Jaworski
Join Date: Jul 2012
Location: New Jersey
Posts: 6
Rep Power: 13
Jaworski.Mike is on a distinguished road
Hi Senol,
I'm glad the first problem is fixed. As to the Co issue, did you change your time step to reflect the new mesh before running your case?

-Mike
Jaworski.Mike is offline   Reply With Quote

Old   July 13, 2012, 14:05
Default
  #5
New Member
 
Senol
Join Date: Aug 2011
Posts: 7
Rep Power: 14
senol is on a distinguished road
Hi mike

I changed my time step, but this did not help me, Then i noticed that i designed my pipes length as +z but in blockmesh i did not change values as expect. I changed it and solved problem.


Thank you for all your help.

-Senol
senol is offline   Reply With Quote

Reply

Tags
cylinder, icofoam, inlet and outlet, snappyhexmesh

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
postProcess Utility: icoFoam -noFunctionObjects Why?How? TeresaT OpenFOAM Post-Processing 8 July 26, 2023 02:41
icoFoam floating point exception (8) leizhao512 OpenFOAM Running, Solving & CFD 7 November 1, 2018 11:43
[OpenFOAM] Paraview doesn't seem to be picking up data generated by icofoam MikeHersee ParaView 2 January 6, 2015 08:27
Density in icoFoam Densidad en icoFoam manuel OpenFOAM Running, Solving & CFD 8 September 22, 2010 04:10
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52


All times are GMT -4. The time now is 01:55.