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

How to introduce a scalar as C(t) = f(C(t-1))

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2006, 00:13
Default How to introduce a scalar as C(t) = f(C(t-1))
  #1
Mahad
Guest
 
Posts: n/a
I'm trying to model a scalar distribution in a reactor. The problem is that I need to intrudce an expression for the scalar flux through one of the walls of the reactor. I need the flux to accounts for the value of the scalar in the reactor one time step before it determine the new value; say C(t) = A*C(t-1)* exp(-kt); where A and k are constants.

Hope you guys can help with that.

Thanks
  Reply With Quote

Old   February 23, 2006, 13:21
Default Re: How to introduce a scalar as C(t) = f(C(t-1))
  #2
Robin
Guest
 
Posts: n/a
Hi Mahad,

In a steady state calculation, if you make the scalar a function of itself, the value it will use will come from the previous timestep. Similarly, if you use any of the integral functions on boundaries in your expressions, the results are returned for the values at the previous timestep.

Regards, Robin
  Reply With Quote

Old   February 23, 2006, 13:58
Default Re: How to introduce a scalar as C(t) = f(C(t-1))
  #3
Mahad
Guest
 
Posts: n/a
Thanks a lot Robin. But what about transient simulations.
  Reply With Quote

Old   February 23, 2006, 16:12
Default Re: How to introduce a scalar as C(t) = f(C(t-1))
  #4
Mahad
Guest
 
Posts: n/a
The CFX-Pre didn't accept self referencing of the function (using the expression option) even for steady state simulations. Do you know how to get though that?!
  Reply With Quote

Old   February 23, 2006, 16:30
Default Re: How to introduce a scalar as C(t) = f(C(t-1))
  #5
Robin
Guest
 
Posts: n/a
Create an algebraic additional variable equal to your variable. If you're using this in a transient simulation, I don't think what I suggested applies as it will end up using the value from the previous coefficient loop.

-Robin
  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
Solving for an additional species CO in coalChemistryFoam N. A. OpenFOAM Programming & Development 3 February 18, 2019 06:58
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
Specifying nonuniform boundary condition maka OpenFOAM Running, Solving & CFD 59 October 22, 2014 15:52
CFX12 rif errors romance CFX 4 October 26, 2009 14:41
STAR-CD user-defined scalar Murali Siemens 0 February 12, 2003 23:52


All times are GMT -4. The time now is 05:02.