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 couple ODE functions with temperature

Please login with a confirmed email address before reporting spam

Hi

Heat Transfer in Solids module and domain ODE module are used in my simulation. In Heat Transfer in Solids module, temperature is already defined. In domain ODE module, dp/dt=f(p, T), in which p is porosity and T is the average temperature of the domain.

However, if I define 2 variables p and T in ODE module, it shows 'the variable names must be unique'. I think I have seen a solution before, in which someone use 2 Studies to couple ODE with temperature. www.comsol.com/community/forums/general/thread/40597/

So can I use this method or is there any other solution? Thanks for helping!

2 Replies Last Post 2016年12月7日 GMT-5 08:38
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 2016年12月6日 GMT-5 02:26
Hi,

I think that only p should be a dependent variable in the ODE, and that, as you mention, the temperature there is an average temperature called T_avg, for example, and defined using an Average coupling operator that averages the temperature field from the Heat Transfer in Solids interface.

Best regards,
Magnus Ringh, COMSOL
Hi, I think that only p should be a dependent variable in the ODE, and that, as you mention, the temperature there is an average temperature called T_avg, for example, and defined using an Average coupling operator that averages the temperature field from the Heat Transfer in Solids interface. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 2016年12月7日 GMT-5 08:38
Hi Magnus,

I've built this model, and porosity decreases with time. Now the problem is that when porosity decreases from 30% to 2%, almost at the end of densification, it starts to vibrate higher and lower. But the reality is that the porosity would keep almost constant at the end.

So how can I avoid the problem in COMSOL?
Hi Magnus, I've built this model, and porosity decreases with time. Now the problem is that when porosity decreases from 30% to 2%, almost at the end of densification, it starts to vibrate higher and lower. But the reality is that the porosity would keep almost constant at the end. So how can I avoid the problem in COMSOL?

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.