CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

[GMSH] Issues with importing 3D mesh of T-junction geometry into MATLAB

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2021, 17:21
Default [GMSH] Issues with importing 3D mesh of T-junction geometry into MATLAB
  #1
New Member
 
Manny Guzman
Join Date: Feb 2021
Posts: 2
Rep Power: 0
manuelguzman61 is on a distinguished road
Hello,

I have created a 3D geometry on GMSH (v. 4.5.6) software that resembles a T-junction with fluid flowing from both the side and the center inlet to the outlet at the end of the channel. I created the geometry using points and lines, as well as defining plane surfaces and one volume. I have my geometry file attached (Tjunctiongeo.txt).

When I construct a 3D mesh and upload it to MATLAB using the importMeshGMSH routine provided by QuickerSim (routine code attached below), I get the following error:
"Unable to perform assignment because the size of the left side is 3-by-74930 and the size of the right side is 3-by-73290."
Error in importMeshGmsh (line 308)
e(1:3, = tmp(tmp(:,2)==2,6:8)';

The 'e' matrix defines all of the mesh boundaries. I have tried to redefine the mesh at specific points, ensure that the mesh file version is compatible with the matlab software (2.2), but I still cannot seem to find where the problem is with the mesh generation. I have the option file attached with information on the mesh and the geometry. I'd appreciate it if someone can guide me on where the problem may be? I think it could be with how I also define my surfaces, but I am unsure. Thank you.

Tjunctiongeo.txt

Tjunctionoptions.txt

Tjunction.jpg
manuelguzman61 is offline   Reply With Quote

Old   February 8, 2021, 17:25
Default [edit]
  #2
New Member
 
Manny Guzman
Join Date: Feb 2021
Posts: 2
Rep Power: 0
manuelguzman61 is on a distinguished road
I apologize I forgot to post the code of the routine, here it is attached

importmeshGMSH.docx
manuelguzman61 is offline   Reply With Quote

Reply

Tags
gmsh, mesh 3d, quickersim

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 10:38
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 11:09


All times are GMT -4. The time now is 10:52.