Home
Reply
Highlighted
Contributor
Posts: 24
0

EDAMesh failed to refine and create a tet mesh.

Error information:

vis_SurfMeshRefine: ierr= 8
SYS_ERROR_OPERATION An operation failed in current state
State object

vis_TetMeshConnect: ierr= 8
SYS_ERROR_OPERATION An operation failed in current state
No nodes or elements defined

vis_NASFwtWriteModel: ierr= 5
SYS_ERROR_NULLOBJECT A NULL object pointer has been encountered
GridFun

 

This is my code:

{

outcome result;
m_SurfaceMeshOpts.setAcceptNonManifold(1);
m_SurfaceMeshOpts.setEnableIntSurfBack(1);
m_SurfaceMeshOpts.setMaxSpanningAngle(45);
m_SurfaceMeshOpts.setTargetEdgeLength(30);
result = api_va_generate_surface_mesh(inputEnList, m_SurfMeshIns, &m_SurfaceMeshOpts);
if (!result.ok())
{
err_mess_type err_no = result.error_number();
std::string tmpS(find_err_mess(err_no));
}

int *elem_array = 0;
double ref_value = 10; //refine size

api_va_set_refinement( m_SurfMeshIns, 20, ref_value ) ;//refine set

result = api_va_refine( m_SurfMeshIns );
if (!result.ok())
{
err_mess_type err_no = result.error_number();
std::string tmpS(find_err_mess(err_no));
}

//

result = api_va_generate_tet_mesh(m_SurfMeshIns,m_TetMeshIns,&m_TetMeshOpts);
if (!result.ok())
{
err_mess_type err_no = result.error_number();
std::string tmpS(find_err_mess(err_no));
}
}