Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 'medium' contour to a 2D mesh #9

Closed
jeanmichelscherer opened this issue Mar 24, 2021 · 6 comments
Closed

Add a 'medium' contour to a 2D mesh #9

jeanmichelscherer opened this issue Mar 24, 2021 · 6 comments

Comments

@jeanmichelscherer
Copy link

Hi,

The 'medium' option works perfectly in 3D.
I wondered if it also available in 2D, i.e. without extrusion.
I tried by giving a list of only two dimensions, or by setting the last dimension to 0, but without success.

Thanks

Jean-Michel

@DorianDepriester
Copy link
Owner

Hi Jean-Michel,
Currently, this feature has been designed for 3D only. I can try to have a look on 2D. I will notice you once it's done.
Regards

DorianDepriester added a commit that referenced this issue Mar 26, 2021
@DorianDepriester
Copy link
Owner

This issue is now fixed. You should be able to add a surrounding medium (referred to as 'Medium' in the mesh) in 2D meshes. The dimensions for the surrounding medium are of course of length 2 (ex: [dx dy]) in this case.

@jeanmichelscherer
Copy link
Author

Great! It works as expected.

@kun-Jiang
Copy link

Sorry to bother you again, I tend to get a 2D mesh by the following command. I have tested mtex version of 5.3.1 and 5.8.0 but there didn't appear medium surround the ROI. And there were still four nodes existing in the margin of the medium.
mesh(G,'titanium-medium.msh','ElementType','Quad','ElementSize',20,'medium',[1000 1000]);
titanium-medium

DorianDepriester added a commit that referenced this issue Mar 27, 2023
@DorianDepriester
Copy link
Owner

Hello @kun-Jiang,
Thank you for reporting this issue, and sorry for the inconvenience. The issue is hopefully fixed now. Download the latest version (not from releases) and it should work.

@kun-Jiang
Copy link

Thanks, Dorian, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants