|
[Sponsors] |
How to introduce a scalar as C(t) = f(C(t-1)) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 23, 2006, 00: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, 13: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, 13: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, 16: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, 16: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 |
|
|
|
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 |