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 animate the movement of one specific subdomain?

Please login with a confirmed email address before reporting spam

My geometry is composed of several complex sobdomains. How can I just animate just one subdomain?

Thank you for you help ion advance,

Henry

1 Reply Last Post Jun 16, 2010, 10:55 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 16, 2010, 10:55 a.m. EDT
The basic method for setting up an animation seems to be to set up a plot showing what you want (at a specific time or parameter), and then adding an animation to the report tab which references that plot over your solution range.

So, you need to look in the plot settings not the animation settings.

In terms of the plot settings, you could try adding a conditional expression based on the domain index to what you're plotting (it's under "geometry and mesh" in the variables list).

For example, to plot fluid flow in the x direction for domain 2 only, set this as the expression:

u_fluid*(dom == 2)

There is probably a better way to handle this, but hopefully this advice helps get you started.
The basic method for setting up an animation seems to be to set up a plot showing what you want (at a specific time or parameter), and then adding an animation to the report tab which references that plot over your solution range. So, you need to look in the plot settings not the animation settings. In terms of the plot settings, you could try adding a conditional expression based on the domain index to what you're plotting (it's under "geometry and mesh" in the variables list). For example, to plot fluid flow in the x direction for domain 2 only, set this as the expression: u_fluid*(dom == 2) There is probably a better way to handle this, but hopefully this advice helps get you started.

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.