Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Extract data function with Matlab?
Posted 21 mars 2014, 12:33 UTC−4 Interfacing, Results & Visualization, Structural Mechanics Version 4.4 1 Reply
Please login with a confirmed email address before reporting spam
Hello everyone,
I have a problem under Comsol with Matlab and i am sure it should be quiet easy to solve.
My model:
it´s a simple box (square with a=20km) with a very thin crack in the middle define as an ellipse (a=1m and b=1000m). I used a granite rheology (elastic material) for the box and the crack is full of .. void( doing the Boolean operation dif between the two geometry by substracting the ellipse from the box ).
What i am doing with this model is to apply an isotropic overpressure inside the crack to see how it deform.
My crack in the model is divide in 4 boundaries called 6,7,8 and 9 (1,2,3,4 are the boundaries of the box. The upper boundary of the crack are 6 and 8.
My Problem:
So now what i want to do under matlab is to extract the vertical displacement, generated by the overpressure, along the upper-part of my ellipse(along boundary 6 and 8) for a given x-coordinates ( that i can choose). The table should be: displacement in Y component in function of a chosen x coordinate along my crack (top boundaries). The reason i want to do that is to compare my displacement with some measured data.
I think i should use mphinterp to find the vertical displacement in function of a given x-coordinate but apparently it´s not working cause i think it needs the x and y coordinates.
Do you have an idea of how can i solve this problem ?is mphinterp relevant in my case or should i use something else?
PS: i am totally able to plot (under Matlab and Comsol) the vertical displacement in function of x-coordinate (along my top boundaries of the crack) but i dont know how to extract those data from a chosen x-coordinates
Please tell me if i am not clear enough
Best regards
Rémi
I have a problem under Comsol with Matlab and i am sure it should be quiet easy to solve.
My model:
it´s a simple box (square with a=20km) with a very thin crack in the middle define as an ellipse (a=1m and b=1000m). I used a granite rheology (elastic material) for the box and the crack is full of .. void( doing the Boolean operation dif between the two geometry by substracting the ellipse from the box ).
What i am doing with this model is to apply an isotropic overpressure inside the crack to see how it deform.
My crack in the model is divide in 4 boundaries called 6,7,8 and 9 (1,2,3,4 are the boundaries of the box. The upper boundary of the crack are 6 and 8.
My Problem:
So now what i want to do under matlab is to extract the vertical displacement, generated by the overpressure, along the upper-part of my ellipse(along boundary 6 and 8) for a given x-coordinates ( that i can choose). The table should be: displacement in Y component in function of a chosen x coordinate along my crack (top boundaries). The reason i want to do that is to compare my displacement with some measured data.
I think i should use mphinterp to find the vertical displacement in function of a given x-coordinate but apparently it´s not working cause i think it needs the x and y coordinates.
Do you have an idea of how can i solve this problem ?is mphinterp relevant in my case or should i use something else?
PS: i am totally able to plot (under Matlab and Comsol) the vertical displacement in function of x-coordinate (along my top boundaries of the crack) but i dont know how to extract those data from a chosen x-coordinates
Please tell me if i am not clear enough
Best regards
Rémi
1 Reply Last Post 21 mars 2014, 13:33 UTC−4