iCAx开思网
标题:
UF_SF_create_ugs_2d_mesh求助!!!
[打印本页]
作者:
datou19870617
时间:
2011-7-14 15:59
标题:
UF_SF_create_ugs_2d_mesh求助!!!
这是我的原程序!
int error=1;
tag_t scenario;
error=UF_SF_create_scenario("Scenario_1.sim",&scenario);
tag_t part_tag;
int type;
tag_t object=NULL_TAG;
tag_t face=NULL_TAG;
int subtype;
int i=0;
tag_t bodys[100];
tag_t solid1;
char str[50];
part_tag=UF_PART_ask_display_part();
do{
UF_OBJ_cycle_objs_in_part( part_tag,UF_solid_type, &face);
UF_OBJ_ask_type_and_subtype(face,&type,&subtype);
if(type==70 && subtype==UF_solid_face_subtype && face!=NULL_TAG )
{
bodys[i]=face;
i++;
}
}while(face!= NULL_TAG);
UF_SF_ugs_2d_mesh_parms_t mesh_parms;
int count = 1 ;
//tag_t scenario;
//int error=1;
tag_t mesh_tag ;
(mesh_parms).element_type = UF_SF_UGS_MESHER_quad4;
(mesh_parms).element_size = 1;
(mesh_parms).edge_match_tolerance = 0.508;
(mesh_parms).format_mesh = TRUE;
(mesh_parms).attempt_quad_mapping = TRUE;
(mesh_parms).split_poor_quads = TRUE;
(mesh_parms).maximum_quad_warp = 2.0;
(mesh_parms).midnode_option = UF_SF_UGS_MESHER_mixed_midnodes;
(mesh_parms).maximum_midnode_jacobian = 3.0;
(mesh_parms).minimum_face_angle = 20.0;
(mesh_parms).surf_mesh_size_variation = 0;
(mesh_parms).mesh_transition = 1;
(mesh_parms).mesh_method = 0;
//error=UF_SF_create_scenario("Scenario_1.sim",&scenario);
error = UF_SF_create_ugs_2d_mesh(&mesh_parms, count, &bodys[0], &mesh_tag);
if (error != 0) uc1601("错误",1);
UF_SF_display_mesh(mesh_tag);
}
网格出不来,编译是对的,请高手帮忙!
作者:
血飘※人间
时间:
2011-8-4 16:31
你好,UF_SF_create_ugs_2d_mesh这个问题你现在解决了吗?我现在也遇到了这个问题,如果你已经搞定了,希望能得到你的帮助,再次先谢过了,如果你还没解决,那加我QQ--406107431我们一起探讨下吧
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3