|
[Sponsors] |
How to introduce a scalar as C(t) = f(C(t-1)) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 22, 2006, 23:13 |
How to introduce a scalar as C(t) = f(C(t-1))
|
#1 |
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 |
|
February 23, 2006, 12:21 |
Re: How to introduce a scalar as C(t) = f(C(t-1))
|
#2 |
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 |
|
February 23, 2006, 12:58 |
Re: How to introduce a scalar as C(t) = f(C(t-1))
|
#3 |
Guest
Posts: n/a
|
Thanks a lot Robin. But what about transient simulations.
|
|
February 23, 2006, 15:12 |
Re: How to introduce a scalar as C(t) = f(C(t-1))
|
#4 |
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?!
|
|
February 23, 2006, 15:30 |
Re: How to introduce a scalar as C(t) = f(C(t-1))
|
#5 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 05:58 |
dieselFoam problem!! trying to introduce a new heat transfer model | vivek070176 | OpenFOAM Programming & Development | 10 | December 23, 2014 23:48 |
Specifying nonuniform boundary condition | maka | OpenFOAM Running, Solving & CFD | 59 | October 22, 2014 14:52 |
CFX12 rif errors | romance | CFX | 4 | October 26, 2009 13:41 |
STAR-CD user-defined scalar | Murali | Siemens | 0 | February 12, 2003 22:52 |