CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Injecting a different fluid after certain time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2015, 01:45
Default Injecting a different fluid after certain time
  #1
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi..

Sorry to revive an old thread.

my doubt is somewhat similar.. My requirement is pipe is initially filled with fluid X. Q quantity of Fluid Y enters the pipe. After that Q quantity of Fluid Z has to enter through the same inlet (like flushing the pipe with fluids one after the other)

I have succeeded in flushing the pipe with Fluid Y. I dont know how to continue the simulation by changing the incoming fluid (Z).
I have defined the alpha.X alpha.Y alpha.Z.

Any hint will be greatly appreciated!!

thank you very much
Regards
Ananth

[ Moderator note: Moved from http://www.cfd-online.com/Forums/ope...let-fluid.html ]

Last edited by wyldckat; August 2, 2015 at 09:16. Reason: see "Moderator note"
Ananthakrishnan is offline   Reply With Quote

Old   July 29, 2015, 06:43
Default Injecting a different fluid after certain time
  #2
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,

I am performing a multiphase simulation where pipe is initially filled with mud water. Cement enters through the inlet. After Q vol of cement has been pumped, oil has to be pumped through the same inlet.


I have simulated the first step of pumping cement through mud filled pipe(using multiPhaseInterFoam) by setting inlet value of alpha.cement as one and rest 0. but cant understand how to inject oil now. I tried changing the alpha.oil to 1 and alpha.cement as 0 in the latest time step but it doesnt work.


I have attached all the case files for reference.
It would be very grateful If someone can point out the mistake in my case set up and/or give directions about how to proceed with this simulation.

Thank you very much
Regards
Ananth
Attached Files
File Type: zip case.zip (35.8 KB, 2 views)
Ananthakrishnan is offline   Reply With Quote

Old   July 29, 2015, 11:50
Default
  #3
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 12
ssss is on a distinguished road
Well setting alpha.oil to 1 will certainly blow the simulation. Try changing the U.oil and U.cement
ssss is offline   Reply With Quote

Old   July 30, 2015, 00:09
Default
  #4
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
hi..

I tried that..what i found was U.* is not required for multiphaseInterFoam(may be i am wrong..!!)!!! MultiphaseEulerfoam needs those.

thanks a lot for the idea..
Ananth

Last edited by Ananthakrishnan; July 30, 2015 at 01:44.
Ananthakrishnan is offline   Reply With Quote

Old   August 2, 2015, 11:35
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Ananth: There is a boundary condition named "uniformFixedValue" as of OpenFOAM 2.1.0: http://www.openfoam.org/version2.1.0...conditions.php - if you time things correctly, probably with an "inline table", you can get the U field to start/stop when you want and the same of the other alpha fields.

If you Google:
Code:
site:www.cfd-online.com/Forums uniformFixedValue
you'll find several examples.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 2, 2015, 11:53
Default
  #6
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi bruno..

oh okie.. sounds perfect..thanks a lot for the info. will check it out..

thanks
Ananth
Ananthakrishnan is offline   Reply With Quote

Old   August 6, 2015, 02:27
Default
  #7
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi bruno,

works perfectly with alpha.* as well.. !! thanks a lot

Regard,
Ananth
Ananthakrishnan 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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 06:32.