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

Defining fluid in domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2015, 13:33
Smile Defining fluid in domain
  #1
Member
 
Prateek
Join Date: Mar 2012
Location: Bangalore
Posts: 32
Rep Power: 14
Prateek garg is on a distinguished road
Hi there,

I am Prateek, I am trying to simulate reacting flow in a shock tube. I have two shock tubes with a diaphragm in between, first is closed at one end and second one is open to air. Now the problem is I want to define first tube with H2-O2 reacting mixture at 50 atm and another tube that is other side of diaphragm with air at STP. I want that when the simulation starts at t=0 the reaction starts at closed end and diaphragm get ruptured and flows starts in another tube due to pressure difference. I have taken boundary between two shock tubes as domain interface due to which I cant specify different fluid in two domains connected via interface. So, how can I specify different fluid in differnt domain and getting fluid flowing from one tube to another. CFX shows error saying H2 O2 must be present in this domain too. So, please help me what shud I do to proceed from here. It wud be a great help.
Prateek garg is offline   Reply With Quote

Old   January 15, 2015, 15:47
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
A "fluid" in ANSYS CFX is a modeling abstraction for mixture, liquid, gases, etc. You should benefit from reading the documentation and understand how ANSYS CFX defines and uses the concepts of fluids, solids and materials.

For your specific setup, you can do it with a single fluid by creating a non-reacting mixture made of H2-O2-AirSTP. Then, on side 1 you define non-zero mass fractions for H2-O2, and zero for AirSTP. On side 2 you do the opposite and you should be set.

Notice that side 1, and side 2 could be within the same domain. For initializing mesh regions within the same domain, you should read about the "inside()@REGION:mesh name" functionality as well.

Hope the above helps,
Opaque is offline   Reply With Quote

Old   January 15, 2015, 20:57
Default Thanks a lot!
  #3
Member
 
Prateek
Join Date: Mar 2012
Location: Bangalore
Posts: 32
Rep Power: 14
Prateek garg is on a distinguished road
Thanks a lot Opaque. I will try and get back to u soon.
Prateek garg is offline   Reply With Quote

Old   January 16, 2015, 08:13
Default another problem
  #4
Member
 
Prateek
Join Date: Mar 2012
Location: Bangalore
Posts: 32
Rep Power: 14
Prateek garg is on a distinguished road
There is another problem came up...if someone can help me finding the possible solution for this

****** Notice ****** |
| Newtons method failed to converge in 150 iterations. This |
| occurred while computing the following variable: |
| |
| Variable Name : Total Pressure |
| Location Name : coldzone |
| Mesh location : VERTICES |
| Mesh entity : |
| Last 3 Changes : 1.59880E+01 1.59880E+01 1.59880E+01 |
| Tolerance : 1.0000E+00 |
| |
| The Newton iteration was either slowly converging or has stalled. |
| The solver will continue with the variable set as it was on the |
| final iteration. If this situation continues you might try |
| increasing the number of iterations allowed for Newtons method. |
| This can be changed by setting one of the parameters: |
| |
| Temperature : "Constitutive Relation Iteration Limit" |
| Pressure : "Newton Pressure Iteration Limit" |
| |
| for your mixture using the definition file editor. |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| ****** Notice ****** |
| While evaluating |
| Total Pressure |
| on domain "reactionzone", |
| the variable |
| Absolute Pressure |
| went outside of its upper limit. Its maximum value was |
| 5.1679E+06. The bounds error was handled by clipping. |
| If this situation persists, consider increasing the table range
Prateek garg is offline   Reply With Quote

Old   January 16, 2015, 11:48
Default
  #5
Member
 
Prateek
Join Date: Mar 2012
Location: Bangalore
Posts: 32
Rep Power: 14
Prateek garg is on a distinguished road
Can u help me regarding this error?

****** Notice ****** |
| Newtons method failed to converge in 150 iterations. This |
| occurred while computing the following variable: |
| |
| Variable Name : Total Pressure |
| Location Name : coldzone |
| Mesh location : VERTICES |
| Mesh entity : |
| Last 3 Changes : 1.59880E+01 1.59880E+01 1.59880E+01 |
| Tolerance : 1.0000E+00 |
| |
| The Newton iteration was either slowly converging or has stalled. |
| The solver will continue with the variable set as it was on the |
| final iteration. If this situation continues you might try |
| increasing the number of iterations allowed for Newtons method. |
| This can be changed by setting one of the parameters: |
| |
| Temperature : "Constitutive Relation Iteration Limit" |
| Pressure : "Newton Pressure Iteration Limit" |
| |
| for your mixture using the definition file editor. |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| ****** Notice ****** |
| While evaluating |
| Total Pressure |
| on domain "reactionzone", |
| the variable |
| Absolute Pressure |
| went outside of its upper limit. Its maximum value was |
| 5.1679E+06. The bounds error was handled by clipping. |
| If this situation persists, consider increasing the table range
Prateek garg is offline   Reply With Quote

Old   January 16, 2015, 12:05
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
This is a warning. As long as the solution converges, you should be fine.

What kind of boundary conditions do you have ? It seems there is a total pressure to static pressure conversion based on the message.

Did you follow the suggestions in the warning ?
Opaque is offline   Reply With Quote

Old   January 17, 2015, 05:25
Default
  #7
Member
 
Prateek
Join Date: Mar 2012
Location: Bangalore
Posts: 32
Rep Power: 14
Prateek garg is on a distinguished road
I initialised the first domain with 50 atm and another domain i.e the other side of the diaphragm is at 1 atm and the reference pressure in both the cases is 0 atm.
Prateek garg is offline   Reply With Quote

Old   January 18, 2015, 05:58
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
In general the Newton's method solver problem indicates poor numerical stability. The approaches described in this FAQ are therefore relevant: http://www.cfd-online.com/Wiki/Ansys...do_about_it.3F
ghorrocks 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
Interface between fluid domain and porous domain windhair CFX 6 May 10, 2018 14:26
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Can CFX do CHT simulations with a solid domain rotating in a stationary fluid domain? acro CFX 15 September 23, 2016 11:16
Defining Domain Interface Saikiran CFX 1 November 7, 2010 17:40
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 22:29.