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

From raw (Matlab matrix) data to Comsol/Ansys mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2019, 11:55
Default From raw (Matlab matrix) data to Comsol/Ansys mesh
  #1
New Member
 
Join Date: Jun 2019
Posts: 1
Rep Power: 0
MiguelES is on a distinguished road
Good day to you all,


I come in hopes of finding a way to mesh the volume of air above a mountain (or other geografic feature) and export it to Comsol (or Ansys if it is easier) to perform CFD analysis.


My question is: forgetting my current setup below, what would be your approach to create a mesh from a Matlab mesh/.tif data?



What I want is a recipe to avoid having to repair or create code from scratch which would be extremely difficult or impossible with my very limited knowledge. There has to be such path but I am unable to find it and I am getting really desperate about that fact.



More info:




My current setup consists in some .tif data exported to Matlab and transformed into a matrix (if the value is 1 it belongs to the mesh, if it is zero it doesn't).



Then I tried to use a Matlab toolbox "iso2mesh" to create a tetrahedral volumetric mesh. That is successfully accomplished, but when the time comes to export the mesh to .mphtxt (Comsol mesh format) it invariably fails.



Thanks in advance for any help or suggestion!
Attached Files
File Type: txt MeshGeneration.txt (1.2 KB, 2 views)
MiguelES is offline   Reply With Quote

Reply

Tags
comsol, import mesh, iso2mesh, matlab, tif


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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
[Other] Mesh created using Matlab ce73stargazer OpenFOAM Meshing & Mesh Conversion 0 June 2, 2016 20:55
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Using Workbench, CFX-Pre doesn't update mesh from upstream data Shawn_A CFX 2 November 25, 2012 14:06
how to pickup the mesh data and vector data oga_shin OpenFOAM 2 October 28, 2011 00:42


All times are GMT -4. The time now is 14:44.