Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
31 juil. 2019, 09:13 UTC−4
Updated:
5 years ago
31 juil. 2019, 09:13 UTC−4
Hi Ofer,
If I understand what you're trying to accomplish properly, here's something you could do:
- Add a distributed ODE to your model
- Set it up so its dependent variable, let's call it "u", solves the equation du/dt=(T>Tcriterion), with the initial condition u(t=0)=0.
- Having done that, you now have a variable that is equal to 0 unless the temperature has passed Tcriterion at any time in the past and takes a positive value if T has passed Tcriterion, and the boolean (u>eps) is equal to 1 if Tcriterion has been reached and to 0 otherwise and represents a state variable that you can use in your material properties to make them irreversible.
I am sure there is a more elegant solution, but the above should work.
Best,
Jeff
-------------------
Jeff Hiller
Hi Ofer,
If I understand what you're trying to accomplish properly, here's something you could do:
- Add a distributed ODE to your model
- Set it up so its dependent variable, let's call it "u", solves the equation du/dt=(T>Tcriterion), with the initial condition u(t=0)=0.
- Having done that, you now have a variable that is equal to 0 unless the temperature has passed Tcriterion at any time in the past and takes a positive value if T has passed Tcriterion, and the boolean (u>eps) is equal to 1 if Tcriterion has been reached and to 0 otherwise and represents a state variable that you can use in your material properties to make them irreversible.
I am sure there is a more elegant solution, but the above should work.
Best,
Jeff