Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

how to express a mathematical function presented in following form ?

Please login with a confirmed email address before reporting spam

Hi,

Can any body sort problems listed below

1. I need to implement an expresion in the following form in comsol multiphysics

zeta = T* ( Mf-Ms) for T(temperature) increasing
T*(As-Af) for T decreasing

2. do comsol support expressions like g= A*f(t) ;for f(t)-f(t-1)>0
B*f(t) ;for f(t)-f(t-1)<0

Exactly saying can we define functions f(t) and f(t-1) [time delay forms in comsol]


Krishna Chaitanya S


1 Reply Last Post Jun 26, 2012, 2:51 p.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 26, 2012, 2:51 p.m. EDT
Hi

if you are solving for T (dependent variable, you should have access to Tt the time derivative of T, hence you could look at the sign of Tt to learn if it is increasing or decrasing and use an "if(Tt>0, positive, negative)"
Check f you find a Tt in your equations for your physics case, or "just" try to plot Tt


--
Good luck
Ivar
Hi if you are solving for T (dependent variable, you should have access to Tt the time derivative of T, hence you could look at the sign of Tt to learn if it is increasing or decrasing and use an "if(Tt>0, positive, negative)" Check f you find a Tt in your equations for your physics case, or "just" try to plot Tt -- Good luck Ivar

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.