# multiple fluids depending on time

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 April 5, 2010, 23:44 multiple fluids depending on time #1 New Member   Join Date: Mar 2009 Posts: 24 Rep Power: 9 Hello. I would like to ask a question regarding CEL. I want to select alternatively two fluids (air and water) in the same domain depending on the simulation time. (For example, among 20 sec of total transient simulation time, 0-15 sec: water and 15-20sec: air in the same domain). Please let me know how to specify the fraction of two fluids using CEL w.r.t the simulation time in the same domain. Thank you. Jaho

 April 6, 2010, 18:31 #2 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 12,638 Rep Power: 98 Yes, this is easy. You just set the volume fraction to be a CEL expression which is 0 before the switch time and 1 after the switch time. In CFX v12 you can use an if statement to do this. If you are in an earlier version you will have to use the step function. Alternately you can use a 1D CEL interpolation function.

 April 10, 2010, 12:44 #3 New Member   Join Date: Mar 2009 Posts: 24 Rep Power: 9 Dear Glenn Horrocks, Hi Glenn. I appreciate your kind help always. If you don't mind, I would like to ask one more question. Actually, my model is a casting die with a cooling channel. Among 87 sec as total cycle time, 83 sec is for cooling time. The remaing 4 sec is for ejection of melt (or part) and injection of new polymer and thus water supply should be stopped during 4sec. So, I give some (positive) value of mass flow rate during 83 sec in the inet's BC of cooling channel and also give the zero value of mass flow rate during last 4sec in the inlet's BC. When I simulate with the above condition, an error occurs in the CFX-solver manager as follows: ****** Notice ****** | A wall has been placed at portion(s) of an OUTLET | boundary condition (at 20.0% of the faces, 31.1% of the area) | to prevent fluid from flowing into the domain. | The boundary condition name is: outlet. | The fluid name is: Water. | If this situation persists, consider switching | to an Opening type boundary condition instead. ERROR #001100279 has occurred in subroutine ErrAction. | Message: | Floating point exception: Overflow Actually, the inlet is located on the bottom of channel and the outlet is on the top of channel. (So, the mass flow is zero in the inlet, the water can flow down to the inlet by gravity in real situation...I don't know if this is related to the above 'overflow'.) Please give me an advice about how to solve the above problem... (Actually, in order to solve this, I used the volumn fraction(with water supply for 83 sec and air suppy for 4sec), but there is an error too. Its error message is "Fluid solid interface are not supported with multiphase flow. Inferface "mouldcontactwater" connects a fluid domain with more than one phase to solid domain) Thank you so much. Sincerely, Jaho

 April 11, 2010, 06:50 #4 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 12,638 Rep Power: 98 The overflow error simply means your simulation has diverged and you need to increase the numerical stability of the simulation. Your statement about the inlet sounds like it may well be the cause. I would move the domain boundary back further so you have simpler boundary conditions. Hopefully you can locate a point where the stuff gets injected from but is otherwise shut off, maybe another port where the air or water escapes - having stuff enter and leave the same boundary is not recommended.

 April 11, 2010, 19:28 #5 New Member   Join Date: Mar 2009 Posts: 24 Rep Power: 9 Hi Glenn, Thank you so much for your help. According to your advice, I switched the inlet location and the outlet location. It seems O.K now. However, there is still the following notice. ****** Notice ****** | A wall has been placed at portion(s) of an OUTLET | boundary condition (at 20.0% of the faces, 31.1% of the area) | to prevent fluid from flowing into the domain. | The boundary condition name is: outlet. | The fluid name is: Water. | If this situation persists, consider switching | to an Opening type boundary condition instead. If there is no error during the simulation in CFX-solver manager, then is it O.K regardless of the above notice (Actually I cannot understand the meaning of the above notice)? If you don't mind, could you please verify this (as well as the meaning if possible...)? Thanks so much again and have a great day~! Jaho

 April 11, 2010, 20:18 #6 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 12,638 Rep Power: 98 There have been many posts on the forum discussing these walls. Do a search on the forum for more information about them.

 April 13, 2010, 15:37 #7 New Member   Join Date: Mar 2009 Posts: 24 Rep Power: 9 Thank you so much, Glenn. Have a great day.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post pUl| FLUENT 31 August 21, 2015 04:46 Mehul CFX 1 June 3, 2008 09:31 skabilan OpenFOAM Running, Solving & CFD 12 September 17, 2007 17:48 Matt FLUENT 0 April 13, 2006 14:59 Sanjay Padhiar Main CFD Forum 1 March 31, 1999 12:32

All times are GMT -4. The time now is 19:34.

 Contact Us - CFD Online - Top