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

Thermal Two Fluid (Not Interacting with Each Other) in CFX

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2019, 13:09
Thumbs up
  #21
Member
 
Join Date: Sep 2014
Posts: 30
Rep Power: 12
Stanley90 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
If you follow Glenn's suggestion of using multicomponent approach (which is limited and you will find out later if you need additional functionality) be certain you set the material components as algebraic; therefore, no need to solve any equations nor boundary conditions.

You must initialize these expressions to be 1 in the domain the material exists, and 0 in the other. Similarly for the second material component. How do you do it?

COMPONENT: Material 1
Mass Fraction = inside()@Domain 1

COMPONENT: Material 2
Mass Fraction = inside()@Domain 2

Done!!
Hi. I have the same modeling problem like this guy above and I've decided to go with path, that you suggested, but when I use these expressions modified to my case solver is going to crash. Can you tell me where do you put this expressions? And should I use Pure Substance, Fixed Composition Mixture or Variable Composition Mixture? Thanks in advance
Stanley90 is offline   Reply With Quote

Old   December 17, 2019, 13:58
Default
  #22
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
You set up those expressions within each Domain/Fluid Models/Component Details.
Opaque is offline   Reply With Quote

Old   December 17, 2019, 14:09
Cool
  #23
Member
 
Join Date: Sep 2014
Posts: 30
Rep Power: 12
Stanley90 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
You set up those expressions within each Domain/Fluid Models/Component Details.
I've put it as expressions: inside()@Air and inside()@Oil, but it still going to crash. The problem is certainly with this expression, because when I put numerical values e.g. 0.5 for each components, the case start pretty nice. And when I try to evaluate expression Expressions/Evaluate for command that you've proposed, the evaluated value shows [ERROR]. Seems like unit error.. Did you try this work around for any of your analysis with 2 different fluid domains?
Stanley90 is offline   Reply With Quote

Old   December 17, 2019, 14:32
Default
  #24
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Is Air the name of the CFX domain, or the name of a material?
Opaque is offline   Reply With Quote

Old   December 17, 2019, 14:34
Default
  #25
Member
 
Join Date: Sep 2014
Posts: 30
Rep Power: 12
Stanley90 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Is Air the name of the CFX domain, or the name of a material?
It's the name of domain, the same for oil. I put in these expressions names of domains.
Stanley90 is offline   Reply With Quote

Old   December 17, 2019, 15:38
Default
  #26
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
How are your materials and fluid named?

It is probably best if you can post the error message you are getting.
Opaque is offline   Reply With Quote

Old   December 18, 2019, 05:12
Default
  #27
Member
 
Join Date: Sep 2014
Posts: 30
Rep Power: 12
Stanley90 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
How are your materials and fluid named?

It is probably best if you can post the error message you are getting.
So the fluid, that I'm using is based on your approach with multi-component material (air + oil) named "Air Ideal Gas and Oil". And I just use this material for for air and oil domains simultaneously. When I open one of this domains and go to Fluid Models/Component Models/Component I can put expression, that you have suggested for each material component (with Algebraic Equation option). Is that right?

Here is that error message I get:
Attached Images
File Type: png Error_01.PNG (24.7 KB, 6 views)
Stanley90 is offline   Reply With Quote

Old   December 18, 2019, 09:09
Default
  #28
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Can you post the definition of the materials being used? Not only the pure substances, but the mixture as well.

It seems the density of one of them is missing something
Opaque is offline   Reply With Quote

Old   December 18, 2019, 10:05
Default
  #29
Member
 
Join Date: Sep 2014
Posts: 30
Rep Power: 12
Stanley90 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Can you post the definition of the materials being used? Not only the pure substances, but the mixture as well.

It seems the density of one of them is missing something
Images Error_02 and Error_03 relate to mixture definition and Error_04, Error_05 relate to Pure substance definition of oil - you can see, that density, heat capacity, viscosity and thermal conductivity are defined by User Functions. These functions are correct, because were used many time in previous models.
Air properties comes from Air Ideal Gas CFX material library.
Attached Images
File Type: png Error_02.PNG (8.6 KB, 2 views)
File Type: png Error_03.PNG (10.1 KB, 2 views)
File Type: png Error_04.PNG (6.7 KB, 3 views)
File Type: png Error_05.PNG (22.1 KB, 1 views)
Stanley90 is offline   Reply With Quote

Old   December 18, 2019, 11:51
Default
  #30
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
I think (just a guess) that once Non Ideal Mixture is selected you must provide the Equation of State.

My advice, since you are not mixing the materials anyways, is to use Ideal Mixture.

Equation of State defines density implicitly or explicitly as a function of temperature, pressure and composition in this case.

My guess: you have not defined the density, and the software failed to find it
Opaque is offline   Reply With Quote

Old   December 18, 2019, 12:16
Default
  #31
Member
 
Join Date: Sep 2014
Posts: 30
Rep Power: 12
Stanley90 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
I think (just a guess) that once Non Ideal Mixture is selected you must provide the Equation of State.

My advice, since you are not mixing the materials anyways, is to use Ideal Mixture.

Equation of State defines density implicitly or explicitly as a function of temperature, pressure and composition in this case.

My guess: you have not defined the density, and the software failed to find it
I did it already.. And it doesn't matter.. It's interesting issue, ins't it?
And what about User Functions? Don't you think that material properties for mixture component comprising constant values and from User functions can be too difficult for CFX solver to calculate? That's exactly like in my case..
Stanley90 is offline   Reply With Quote

Old   December 18, 2019, 16:49
Default
  #32
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
In principle, you are not mixing anything, correct? it is just a fake/dummy setup to trick the software into independent physics in two different passages

Have you tried to setup the case with standard materials? i.e. materials provided by the software.

I personally do not like the multi component approach to set up this type of problems, but others in the forum have been successful in the past; therefore, it is a process that works.
Opaque is offline   Reply With Quote

Old   December 18, 2019, 18:40
Default
  #33
Member
 
Join Date: Sep 2014
Posts: 30
Rep Power: 12
Stanley90 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
In principle, you are not mixing anything, correct? it is just a fake/dummy setup to trick the software into independent physics in two different passages

Have you tried to setup the case with standard materials? i.e. materials provided by the software.

I personally do not like the multi component approach to set up this type of problems, but others in the forum have been successful in the past; therefore, it is a process that works.
Yes, this trick was only to choose different material components for each fluid domain. So, as I mentioned before it work even as mixture of air and oil defined by user, but only when I put numerical value for mass fractions. When I switch to expression inside()@Domain_name it's going to crash.. So, my modeling with this approach has finished at that step - problem with expression Have you got idea if they should be defined in other way?
Stanley90 is offline   Reply With Quote

Reply

Tags
multiple fluids, thermal


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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 18:38
CFX FSI Fatal Error unbanana CFX 0 October 3, 2015 06:57
GETVAR Error in Multiband Monte Carlo Radiation Simulation with Directional Source silvan CFX 3 June 16, 2014 10:49
FSI: Pressure and Normal Force don't match with expected values Geraud CFX 6 August 21, 2012 16:34


All times are GMT -4. The time now is 17:28.