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.

Structuring a dynamic study using Livelink w/ MATLAB

Please login with a confirmed email address before reporting spam

Hi there,

I am solving a problem involving the Magnetic Fields No Currents and Two Phase Laminar Moving Mesh modules.
Here is what I would like to do:

Solve the magnetostatics problem using a stationary solver. Use the results of the stationary solution as initial conditions for the time dependent CFD study to solve only one time step. Update the position of the mesh. Re-solve the stationary magnetostatics problem. Update the initial conditions for the time dependent CFD solution and solve for the next time step... and so on...

I know this is possible by writing a Livelink MATLAB script, but is it possible using just COMSOL with two study steps?

I am hoping to use MATLAB route. I would like to setup the mph file in the COMSOL gui and then write a loop in MATLAB that will structure the order of operations.

I would first like to get one iteration working in COMSOL before I use MATLAB. I currently have two studies, the first solving the magnetostatics equations. The second solves the time dependent CFD and uses the results of the first study. How do I tell the time dependent study to only compute one time step?

Thank you for your time,

Zach

0 Replies Last Post Jun 27, 2014, 12:33 a.m. EDT
COMSOL Moderator

Hello Zachary

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.

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.