Please login with a confirmed email address before reporting spam
Posted:
9 years ago
04.11.2015, 04:53 GMT-5
Sorry to raise up the question again.
But is it possible to switch on or off an interpolation function in COMSOL?
I am looking forward to hear your answer.
Sepideh
Sorry to raise up the question again.
But is it possible to switch on or off an interpolation function in COMSOL?
I am looking forward to hear your answer.
Sepideh
Edgar J. Kaiser
Certified Consultant
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
04.11.2015, 05:13 GMT-5
Sepideh,
your question is not really clear to me. What exactly do you mean by switching on and off? Do you want the function to return g(t) = f(t) if f(t) < 0.4 and g(t) = 0 if f(t) >= 0.4 ?
Cheers
Edgar
--
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Sepideh,
your question is not really clear to me. What exactly do you mean by switching on and off? Do you want the function to return g(t) = f(t) if f(t) < 0.4 and g(t) = 0 if f(t) >= 0.4 ?
Cheers
Edgar
--
Edgar J. Kaiser
emPhys Physical Technology
http://www.emphys.com
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
04.11.2015, 07:13 GMT-5
I have an interpolation function which the first column is time and the second column is water level (water level is changing with time [increasing and decreasing]).
I defined this input data as an interpolation function F5(t) in COMSOL.
I want to define inflow boundary condition which is: rainfall(t)*stepfn(F5(t))
which means imposing rainfall to the domain as far as the water level is less than 0.4[m] which is based on the interpolation function and switch it off this boundary condition when the water level is higher than 0.4[m].
[rainfall is also imposed as interpolation fn].
Please let me know if my question is not clear.
Hope to hear from you.
Sepideh
I have an interpolation function which the first column is time and the second column is water level (water level is changing with time [increasing and decreasing]).
I defined this input data as an interpolation function F5(t) in COMSOL.
I want to define inflow boundary condition which is: rainfall(t)*stepfn(F5(t))
which means imposing rainfall to the domain as far as the water level is less than 0.4[m] which is based on the interpolation function and switch it off this boundary condition when the water level is higher than 0.4[m].
[rainfall is also imposed as interpolation fn].
Please let me know if my question is not clear.
Hope to hear from you.
Sepideh
Edgar J. Kaiser
Certified Consultant
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
04.11.2015, 08:55 GMT-5
Sepideh,
this should do the trick:
rainfall(t)*(F5(t)<0.4)
This will return rainfall(t) as long as F5(t) < 0.4 and return 0 if F5(t) >= 0.4.
Hope I understood it correctly.
Cheers
Edgar
--
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Sepideh,
this should do the trick:
rainfall(t)*(F5(t)= 0.4.
Hope I understood it correctly.
Cheers
Edgar
--
Edgar J. Kaiser
emPhys Physical Technology
http://www.emphys.com