找回密码 注册 QQ登录
开思网工业级高精度在线3D打印服务

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?在线3D打印服务,一键上传,自动报价 
查看: 16704|回复: 0
打印 上一主题 下一主题

[求助] 关于高级仿真中二次开发的材料定义问题

[复制链接]
跳转到指定楼层
1
发表于 2012-2-23 11:00:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
各位大家好!小弟在进行高级仿真二次开发时,函数UF_SF_create_material()不太明白

int UF_SF_create_material
(
char* name,
char* category,
UF_SF_neutral_material_types_t  material_type,
UF_SF_material_prop_p_t   property_values,
UF_SF_library_material_t  library_material,
tag_p_t material_tag

)


char*nameInputName of material. The maximum
number of allowable characters is 80.
char*categoryInputCategory of material, pass NULL if it is
not required
UF_SF_neutral_material_types_tmaterial_typeInputThe type of material to create.
UF_SF_MATERIAL_ISOTROPIC =
Isotropic material.
UF_SF_MATERIAL_ORTHOTROPIC
= Orthotropic material,
UF_SF_MATERIAL_ANISOTROPIC
= Anisotropic material.
UF_SF_MATERIAL_FLUID
= Fluid material.
UF_SF_material_prop_p_tproperty_valuesInputInput structure with Youngs modulus,
poissons ratio, Mass density, Thermal
conductivity, and Thermal Coefficient.
Call "UF_SF_init_matl_prop" to
initialize this structure before
setting new values.
UF_SF_library_material_tlibrary_materialInputUF_SF_MATL_IS_READ_ONLY
UF_SF_MATL_IS_EDITABLE
tag_p_tmaterial_tagOutputCreated material tag.

其中的UF_SF_material_prop_p_t   property_values 不知道如何赋值,UF_SF_material_prop_p_t 是一个共用体,其下成员是结构体 UF_SF__isotropic_t 而该结构体的成员类型是下面的结构体。
这种共用体套结构体的数据结构,不知如何初始化。

此外,可否具体解释此结构体的作用。
struct UF_SF_multi_prop_s
{
   UF_SF_multi_prop_type_t      type;          /* Type of property, tabular or through  expression. */
   UF_SF__multi_t               multi;         /* Union containing pointer to the table and tag of the expression. */
   UF_UNIT_MEASURE_TYPE_t       measure_type;  /* Type of measure - Eg. MEASURE_FORCE, ASURE_MASS_DENSITY..etc*/
   tag_t                        unit_type_tag; /* Tag to pointer of unit type - Eg Newton, kg/m3 ..etc */
};
typedef struct UF_SF_multi_prop_s  UF_SF_multi_prop_t,*UF_SF_multi_prop_p_t;
谢谢各位的关注!



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2024-9-20 07:57 , Processed in 0.025113 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表