|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
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* | name | Input | Name of material. The maximum
number of allowable characters is 80. | char* | category | Input | Category of material, pass NULL if it is
not required | UF_SF_neutral_material_types_t | material_type | Input | The 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_t | property_values | Input | Input 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_t | library_material | Input | UF_SF_MATL_IS_READ_ONLY
UF_SF_MATL_IS_EDITABLE | tag_p_t | material_tag | Output | Created 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;
谢谢各位的关注!
|
|