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

How to define setFields to have a triangle fluid domain in 2D case?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2015, 05:28
Default How to define setFields to have a triangle fluid domain in 2D case?
  #1
New Member
 
Join Date: Feb 2015
Posts: 4
Rep Power: 6
xiaor1 is on a distinguished road
Hi, every one,

I am just new to OpenFoam and now my case is a inclined rectangular tank with a horizontal water surface(water depth is very low) as the initial condition. But when I go through Dambreaking tutorial, I find that I can only define a box-shape fluid domain rather than a triangle one, which doesnot work in this case. Could anyone please tell me that how to define such a fluid domain as in the pic?shallow water in tank.pdf Any information is appreciated. Thanks!
xiaor1 is offline   Reply With Quote

Old   March 16, 2015, 06:22
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,887
Rep Power: 34
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

If your mesh is not inclined, you can use rotated box, so the intersection of the mesh and rotated box is triangle (case A on attached image, search the forum for syntax of rotatedBox in setFields), if your mesh is inclined, you can use just box (case B on attached image).
Attached Images
File Type: png box-outside-domain.png (6.8 KB, 73 views)
alexeym is offline   Reply With Quote

Old   March 16, 2015, 10:27
Default
  #3
New Member
 
Join Date: Feb 2015
Posts: 4
Rep Power: 6
xiaor1 is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

If your mesh is not inclined, you can use rotated box, so the intersection of the mesh and rotated box is triangle (case A on attached image, search the forum for syntax of rotatedBox in setFields), if your mesh is inclined, you can use just box (case B on attached image).
Thank you! Alexey Matveichev,

I used the first method u mentioned and it works quite well. Thanks for help!

Best regards
xiaor1 is offline   Reply With Quote

Old   April 13, 2018, 16:10
Default water domain above slopped surface
  #4
New Member
 
Join Date: Apr 2018
Posts: 2
Rep Power: 0
behnazghp is on a distinguished road
Hello
Could someone please help me define a volume of water above a sloped surface? Basically, I need to define a triangular volume of water in setField. Please see the figure attached.

Thanks
Attached Images
File Type: png cross-section6.png (9.6 KB, 11 views)
behnazghp is offline   Reply With Quote

Reply

Tags
setfieldsdict

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
Floating point exception: Zero divide liladhar CFX 11 December 16, 2013 05:07
injection problem Mark New FLUENT 0 August 4, 2013 02:30
[ICEM] How to define the name of the fluid domain ztdep ANSYS Meshing & Geometry 5 December 20, 2012 10:13
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24
UDF FOR UNSTEADY TIME STEP mayur FLUENT 3 August 9, 2006 11:19


All times are GMT -4. The time now is 14:59.