iCAx开思网

标题: 关于高级仿真中二次开发的材料定义问题 [打印本页]

作者: qyj0578_cn    时间: 2012-2-23 11:00
标题: 关于高级仿真中二次开发的材料定义问题
各位大家好!小弟在进行高级仿真二次开发时,函数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;
谢谢各位的关注!








欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3