Dear Dr. Fang,
I am trying to create a 3D tetrahedral mesh from a surface mesh. Since my surface is very finely meshed, I tried to resample/coarsen it in a first step. The resample function fails to perform due to "Cost computation constraints". I get the following output:
octave:76> FVcoarse=stlread('Cutout_coarseMesh_withPlane_ForFEmesh.obj.stl');
octave:77> trisurf(FVcoarse.faces,FVcoarse.vertices(:,1),FVcoarse.vertices(:,2),FVcoarse.vertices(:,3)) #For verification/display purposes only
octave:78> [FVCno,FVCel]=meshresample(FVcoarse.vertices(:,1:3),FVcoarse.faces(:,1:3),keepratio);
= Surface Mesh Simplification Utility (Based on CGAL 3.4) =
(modified for iso2mesh by Qianqian Fang)
max face ratio=0.000001
edge index number 301992
mesh simplificaton in progress ...
Edges collected: 150996
Edges proccessed: 150996
Edges collapsed: 0
Edges not collapsed due to topological constrians: 0
Edge not collapsed due to cost computation constrians: 150996
Edge not collapsed due to placement computation constrians: 0
Finished...
0 edges removed.
150996 final edges.
As an alternative, I tried to remesh the surface. Unfortunately, this did not work either:
octave:79> [FVCno,FVCel]=remeshsurf(FVcoarse.vertices(:,1:3),FVcoarse.faces(:,1:3),keepratio);
warning: /data/prakash/src/iso2mesh/remeshsurf.m: possible Matlab-style short-circuit operator at line 46, column 17
converting a closed surface to a volumetric binary image ...
error: out of memory or dimension too large for Octave's index type
error: called from:
error: /data/prakash/src/iso2mesh/surf2volz.m at line 22, column 4
error: /data/prakash/src/iso2mesh/surf2vol.m at line 22, column 4
error: /data/prakash/src/iso2mesh/remeshsurf.m at line 41, column 4
Could you tell me what I might be doing wrong? Or perhaps suggest a workaround to my problem.
Thanks in advance,
Arun Prakash
PS: I am trying this the third time - hope this time I am successful in posting
Dear Dr. Fang,
I am trying to create a 3D tetrahedral mesh from a surface mesh. Since my surface is very finely meshed, I tried to resample/coarsen it in a first step. The resample function fails to perform due to "Cost computation constraints". I get the following output:
[no,fc]=meshcheckrepair(FVcoarse.vertices(:,1:3),FVcoarse.faces(:,1:3),'deep');
[FVCno,FVCel]=meshresample(no,fc,keepratio);
octave:76> FVcoarse=stlread('Cutout_coarseMesh_withPlane_ForFEmesh.obj.stl');
octave:77> trisurf(FVcoarse.faces,FVcoarse.vertices(:,1),FVcoarse.vertices(:,2),FVcoarse.vertices(:,3)) #For verification/display purposes only
octave:78> [FVCno,FVCel]=meshresample(FVcoarse.vertices(:,1:3),FVcoarse.faces(:,1:3),keepratio);
...
As an alternative, I tried to remesh the surface. Unfortunately, this did not work either:
octave:79> [FVCno,FVCel]=remeshsurf(FVcoarse.vertices(:,1:3),FVcoarse.faces(:,1:3),keepratio);warning: /data/prakash/src/iso2mesh/remeshsurf.m: possible Matlab-style short-circuit operator at line 46, column 17
converting a closed surface to a volumetric binary image ...
error: out of memory or dimension too large for Octave's index type
....
Could you tell me what I might be doing wrong? Or perhaps suggest a workaround to my problem.Thanks in advance,
Arun Prakash
PS: I am trying this the third time - hope this time I am successful in posting
--
You received this message because you are subscribed to the Google Groups "iso2mesh-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iso2mesh-user...@googlegroups.com.
To post to this group, send email to iso2mes...@googlegroups.com.
Visit this group at https://groups.google.com/group/iso2mesh-users.
For more options, visit https://groups.google.com/d/optout.
Hi QianQian,
Thanks for the instructions. I have now been able to successfully generate a tetrahedral mesh. I do have a problem with the mesh quality, though.
Using the mesh generated by iso2mesh, I tried to perform simulations with Abaqus. The simulation aborted due to the following error:
Error in job APTrecons_GGp_importedMesh: The volume of 60 elements is zero, small, or negative. Check coordinates or node numbering, or modify the mesh seed. In the case of a tetrahedron this error may indicate that all nodes are located very nearly in a plane. The elements have been identified in element set ErrElemVolSmallNegZero.
Job APTrecons_GGp_importedMesh: Analysis Input File Processor aborted due to errors.
Error in job APTrecons_GGp_importedMesh: Analysis Input File Processor exited with an error.
Furthermore, I have quite a few elements that are distorted.
Is there a way to correct these elements - perhaps a cleaning function that I need to call before I use saveabaqus?
Cheers,
Arun