-
Filter by Topic
Release
Popular Topics
- List all discussions
Variable change with time
|
Thread index | Previous thread | Next thread | Start a new discussion |
January 18, 2013 6:47am UTC
Variable change with time
I have a question about variable change with time.
I try to make a mass transfer model. The inflow concentration change with time.
If t <= 1000s then C=1mol/m^3
else C=0
I upload the data and make a Interpolation Function. Function name: int1
Then I set the Inlet Concentration as int1. It shows int1 is not variable.
How can I make this kind of variable?
Thanks in advance
Dylan
Reply | Reply with Quote | Send private message | Report Abuse
January 18, 2013 7:08am UTC in response to Dylan Xia
Re: Variable change with time
Hi
if you make it a function you need to give it an argument as int1(t[1/s]). But I would propose that you use a step function from 1 to 0 at t = 1000 s with a smoothing of perhaps 1 sec, then enforce your time stepping algorithm to slow down and take a 2-3 points during the switch off (i.e. strict or intermediate stepping)
--
Good luck
Ivar
Reply | Reply with Quote | Send private message | Report Abuse
January 19, 2013 10:01pm UTC in response to Ivar Kjelberg
Re: Variable change with time
Thank you very much.
Dylan
Reply | Reply with Quote | Send private message | Report Abuse
Rules and guidelines

