HELP WITH A FUNCTION

Use this forum to post Vensim related questions.
Post Reply
erodrisant
Junior Member
Posts: 5
Joined: Mon Jun 12, 2017 2:46 am
Vensim version: PLE

HELP WITH A FUNCTION

Post by erodrisant »

Hello Guys!

I need the help in order to know how I can insert this function as source.

Thanks for your help

Edgar :)
Attachments
This is the system
This is the system
ejemplo.png (106.25 KiB) Viewed 2661 times
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: HELP WITH A FUNCTION

Post by Administrator »

This is very similar to
http://www.ventanasystems.co.uk/forum/v ... f=2&t=6682

r = if then else ( time >= 0 :AND: time <= 10^6 , 10^(-4) , 0 )
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
erodrisant
Junior Member
Posts: 5
Joined: Mon Jun 12, 2017 2:46 am
Vensim version: PLE

Re: HELP WITH A FUNCTION

Post by erodrisant »

Thanks my friend!

I have another dude in this case for this function the Vensim model is on this way ( see the image please), the variable "flujo de entrada" is a fluence variable when I defined the ecuation r = if then else ( time >= 0 :AND: time <= 10^6 , 10^(-4) , 0 ) is necessary that I insert an auxiliary variable called "tiempo", is it correct? and what are the possible settings for this auxiliary variable called "tiempo"?


Thanks for your help

Edgar :)
Attachments
function
function
Sin título.png (9.51 KiB) Viewed 2653 times
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: HELP WITH A FUNCTION

Post by Administrator »

erodrisant wrote:I have another dude in this case for this function the Vensim model is on this way ( see the image please), the variable "flujo de entrada" is a fluence variable when I defined the ecuation r = if then else ( time >= 0 :AND: time <= 10^6 , 10^(-4) , 0 ) is necessary that I insert an auxiliary variable called "tiempo", is it correct? and what are the possible settings for this auxiliary variable called "tiempo"?
Sorry, I don't understand what you are asking here.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
erodrisant
Junior Member
Posts: 5
Joined: Mon Jun 12, 2017 2:46 am
Vensim version: PLE

Re: HELP WITH A FUNCTION

Post by erodrisant »

Well,

In relation to the model this equation r = if then else ( time >= 0 :AND: time <= 10^6 , 10^(-4) , 0 )corresponds to an input stream, at the moment of entering it into vensim this equation depends on the time for which it is necessary to declare the variable time as auxiliary variable, is this correct or what values ​​would have to take the variable time?

The vensim model was previously attached.

Thanks!
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: HELP WITH A FUNCTION

Post by Administrator »

You do not need to declare time (it is already declared in every Vensim model).
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
erodrisant
Junior Member
Posts: 5
Joined: Mon Jun 12, 2017 2:46 am
Vensim version: PLE

Re: HELP WITH A FUNCTION

Post by erodrisant »

Thanks I run the function and it is ok!

Regards

Edgar
Post Reply