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

Defining a piecewise mass fraction in named expressions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2022, 23:53
Default Defining a piecewise mass fraction in named expressions
  #1
New Member
 
Join Date: Aug 2022
Posts: 1
Rep Power: 0
askhur is on a distinguished road
Dear community members,

I aim to define a piecewise constant mass fraction in a species transport simulation (ANSYS Fluent). I created a new "Named Expression" and in the definition field, I defined

Code:
IF(0[s] <= t <= 1[s], 0, IF(1.1[s] <= t <= 2[s], 1, 0) )
Now, instead of the final value 0, I want Fluent to use the mass fraction of oxygen at t = 1[s] (in oxygen + argon mixture).

I have tried both "mf" and "MassFraction" in "Variables" section, but I have no clues how to proceed. Any help is appreciated. Thank you.
askhur is offline   Reply With Quote

Reply

Tags
mass fraction (y), species transport model


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
multiphaseEulerFoam FOAM FATAL IO ERROR qutadah.r OpenFOAM Running, Solving & CFD 11 December 10, 2021 20:18
Simulation crashes when turbulence is on (reactingMultiphaseEulerFoam) remidemol OpenFOAM Running, Solving & CFD 3 May 26, 2020 05:47
multiphaseEulerFoam (OF2.3.0) : Courant number explodes when running in parallel Mehrez OpenFOAM Running, Solving & CFD 10 May 18, 2016 11:44
To calculate area averaged species mass fraction from PDF Bharadwaj B S Fluent UDF and Scheme Programming 3 March 8, 2016 02:22
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20


All times are GMT -4. The time now is 10:52.