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

[Other] nonrectangular fields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2014, 10:00
Post nonrectangular fields
  #1
New Member
 
Join Date: Aug 2013
Posts: 5
Rep Power: 12
basiratshamsa is on a distinguished road
Dear friends

I am trying to make a 2 phase model in openfoam towphase solver. in fields that i have in my problem , i have non rectangular regions. can you help me how can i define this regions in setfields file?

thanks
basiratshamsa is offline   Reply With Quote

Old   November 20, 2014, 04:01
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Hi,

please be more specific. What's non-rectangular in your case?!

Maybe these pages might help:

http://www.cfd-online.com/Forums/ope...setfields.html
https://openfoamwiki.net/index.php/C...funkySetFields

Cutter
cutter is offline   Reply With Quote

Old   November 20, 2014, 10:47
Default
  #3
New Member
 
Join Date: Aug 2013
Posts: 5
Rep Power: 12
basiratshamsa is on a distinguished road
Dear Cutter

thanks for your replay. in a rectangular channel i have a trapezoidal trench of sand, for making trapezoidal zoom of sand i do not know how use shapetocell command in setFields file.

regards
basiratshamsa is offline   Reply With Quote

Old   November 20, 2014, 11:16
Default
  #4
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Hi,

ok, this is a fairly simple geometric shape, but it isn't one of the standard shapes.

I have done something like this before, but couldn't find the case yet (probably on another machine). Here are the basic steps:

1. create the mesh of your channel

2. create a STL geometry of your trapezoidal using your favourite CAD program (Salome for example)

3. use the STL to create a cell set using surfaceToCell in topoSet, see https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict

4. reference the the cell set using zoneToCell within the setFieldsDict, http://www.cfd-online.com/Forums/ope...setfields.html

Good luck!
Cutter
cutter is offline   Reply With Quote

Reply


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
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
multiphaseEulerFoam: efficient way of implementing fields for all phases maybee OpenFOAM Programming & Development 0 January 23, 2014 04:16
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
an odd(at least for me!) reconstructPar error on a field immortality OpenFOAM Running, Solving & CFD 3 June 3, 2013 22:36
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15


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