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

Running MTEX2Gmsh on macOS Ventura 13.3.1 #17

Open
Colin-Williams94843 opened this issue May 26, 2023 · 8 comments
Open

Running MTEX2Gmsh on macOS Ventura 13.3.1 #17

Colin-Williams94843 opened this issue May 26, 2023 · 8 comments

Comments

@Colin-Williams94843
Copy link

Hello!

I am trying to run your toolbox on a Mac. When prompted to identify the executable file for gmsh, I am unable to do so, because the Mac version of gmsh does not use a .exe file.

Are you aware of a workaround to use your toolbox on a Mac?

Thank you,

Colin

@DorianDepriester
Copy link
Owner

Hello Colin,
Thank you for reporting me this issue. Does the new version of MTEX2Gmsh (see commit 31084f4) fix it?

@DorianDepriester
Copy link
Owner

@Colin-Williams94843
Copy link
Author

I have tried 2018a, 2022a and currently 2022b. I have succeeded in using a Windows computer running matlab 2022a, so I think I will continue to use that machine instead.

By the way - is there any way to create a purely 2D model with your tools? I see the current output is 3D with a thickness of 1 element, but did not see a 2D option in the documentation.

Thank you very much for your help.

@DorianDepriester
Copy link
Owner

You have to use triangular (G.mesh(...,'ElementType','Tri')) or quadrangular (G.mesh(...,'ElementType','Quad')) elements in this case.
See https://doriandepriester.github.io/MTEX2Gmsh/html/meshing.html#13

@Colin-Williams94843
Copy link
Author

Thank you very much for your responses. I clearly missed this in the documentation upon a second read-through.

I do have an additional question regarding the 2D mesh. In 3D, the "gradient" command is working perfectly and successfully meshing in ABAQUS when I create and upload the .inp file. However, when I use any of the available 2D element options along with the gradient command, the gradient effect is overlooked when the mesh is created. All elements are the same size. I also have tried creating the command using the GUI, and see the same result.

The command I used most recently is as follows for the object "G":

mesh(G,'sample.msh','ElementType','Tri','ElementSize',1,'gradient',0.5)

I see this same effect (no gradient) for 'Quad' and 'QuadOnly' 2D options as well. When I upload the .inp file from any 2D mesh into ABAQUS, I then get errors (negative or zero element area) when I check the mesh quality. This is interesting because as I said, things work very well in 3D with all other parameters held equal.

Do you also experience this result when combining the gradient and 2D elements? I would be happy to share the EBSD data I am experimenting with.

Thank you again for your responses.

@DorianDepriester
Copy link
Owner

I actually only work on 3D, that's why I missed this issue. I will try to investigate this ASAP!

@DorianDepriester
Copy link
Owner

Hello @Colin-Williams94843 ,
I have just fixed your problem concerning the gradient option in 2D. For the record, I have opened and fixed a new issue (#18). Nevertheless, I still have troubles when using the 'QuadOnly' elementType with gradient option in 2D. I am working on this.

@DorianDepriester
Copy link
Owner

DorianDepriester commented Jun 12, 2023

Also note that if you intend to perform FE simulations in Abaqus, taking into account the 3D orientations (given by the Euler angles for instance), you will necessary work in 3D, hence the 3D meshing by default. This also applies for other FE codes, like PRISMS-Plasticity and Zebulon (AFAIK).

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

2 participants