Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Plot a solution from a dataset in Matlab

$
0
0

I am using parameter sweep in Comsol 5.5 to solve a contact problem (Stationary with Augmented Lagrangian). One of the surfaces is a rigid object with predescribed displacement (defined and ramped by the sweep parameter), the other one is a surface with solid mesh. I want to plot the deformed solid for any of the solutions in the data set in Matlab. I know that I can do this by not using parameter sweep and manually changing the sweep parameter using a Matlab loop. However, (i) the solution is slightly different in these two cases, and, (ii) the animation feature only works for the comsol parameter sweep method (which creates a dataset for solution). Comsol's Matlab API has functions to extract data for solutions in dataset but I could'nt find a function for plotting data. 1. Is there a way to do this (get a plotgroup data in the dataset other than the last one)? 2. If not, is there a way to get the vertices and trinagles of the deformed surface for a given index in a dataset?


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>