CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Initial conditions for dam break...

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2002, 10:00
Default Initial conditions for dam break...
  #1
Gustaf Mårtensson
Guest
 
Posts: n/a
I'm attempting to model a simple dam break in CFX 5.5. I had hoped that I could set the initial condition of a step of water in my rectangular domain by defining a sub-domain and setting a specific volume fraction there and another in the rest of the domain.

According to the manual, this is possible, but I have failed to do so. I can only set initial conditions for the domain, not the sub-domain. Any ideas what I'm doing wrong?

Thanks,

Gustaf Mårtensson KTH, Sweden
  Reply With Quote

Old   April 22, 2002, 19:46
Default Re: Initial conditions for dam break...
  #2
Robin
Guest
 
Posts: n/a
Hi Gustaf,

The CEL function called [i]subdomain[i] will evaluate to 1 when you are in a subdomain and zero when you are not. If you want all the water within your subdomain and air elsewhere, just set the volume fraction of water to "subdomain" and that of air to "1-subdomain".

Similarly, you could use a step function or a combination of step functions.

Remember that you must also initialize the hydrostatic pressure (relative to your reference hydrostatic pressure which is calculated with the reference density you provided in the domains form when specifying gravity.)

Regards, Robin
  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
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 10:08
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
ForcesCoeffs ronaldo OpenFOAM 4 September 14, 2009 08:11
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 04:32
MRFSimpleFoam amp cyclic patches david OpenFOAM Running, Solving & CFD 36 October 21, 2008 22:55


All times are GMT -4. The time now is 18:23.