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.

Simulating the magnetocaloric effect

Please login with a confirmed email address before reporting spam

Hello

I have been struggling with the simulation of the magnetocaloric effect that still no one gave details on how to do it. This issue has been a topic without answers for quite a long time, although simple to solve in theory. In practice, in adiabatic processes, when we apply a magnetic field to a magnetic (or magnetocaloric) material, its temperature increases, and when we remove the magnetic field its temperature decreases. These adiabatic temperature variations are incorporated in a function that depends on temperature ∆Tad(T).

The best way to simulate the magnetocaloric effect is by changing the temperature abruptly, i.e. in an adiabatic process, with a value that depends on the temperature of the material. Note that there is no need to include magnetism in the model.

Numerically, we can stop the numerical calculations in the instant right before the magnetic field application/removal, add/subtract ∆Tad(T) in the solution and use the result as initial condition of a subsequent simulation. Doing this repeatedly, one can compute, e.g., a magnetic refrigerator. But here is the complication: I do not see a way to implement this process in COMSOL: do some manipulation on the temperature at the end of one simulation and use it as initial condition of a next one. It is weird because with the free software openFOAM this is somehow straightforward, while with a paid one such as COMSOL seems difficult to implement. Can anyone give a hint to do so?

Thanks in advance

1 Reply Last Post Sep 6, 2023, 3:03 p.m. EDT
COMSOL Moderator

Hello Joao Amaral

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago Sep 6, 2023, 3:03 p.m. EDT
Updated: 1 year ago Sep 6, 2023, 3:05 p.m. EDT

To anyone interested, the Events interface, illustrated in this blog post allows to turn terms in the equations on and off based on the solution itself. If on the other hand the timing of the on-off cycling is known in advance, a simple periodic function can be used.

Best,

Jeff

-------------------
Jeff Hiller
To anyone interested, the Events interface, illustrated in [this blog post](https://www.comsol.com/blogs/implementing-a-thermostat-with-the-events-interface/) allows to turn terms in the equations on and off based on the solution itself. If on the other hand the timing of the on-off cycling is known in advance, a simple periodic function can be used. Best, Jeff

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.