2023-05-08 06:32:41 +00:00
|
|
|
|
#ifndef _MODELDATAPY_H_
|
|
|
|
|
#define _MODELDATAPY_H_
|
|
|
|
|
#include "modelDataAPI.h"
|
|
|
|
|
|
|
|
|
|
namespace ModelData
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
class ModelDataPy
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static void importComponents(int caseId, const char* addcomponentsId);
|
|
|
|
|
static void importGeometry(int caseId, char* addcomponentsId);
|
|
|
|
|
static void addBC(int caseId, int id, char* bctypetostring);
|
|
|
|
|
static void setValue(int caseID, char* variable, char* stype, char* svalue);
|
|
|
|
|
static void setBCValue(int caseID, int index, char* variable, char* stype, char* svalue);
|
2023-12-07 09:20:26 +00:00
|
|
|
|
static void setMaterial(int caseID, char* componentIDs, int materialID);
|
2023-05-08 06:32:41 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//声明为c接口,供python脚本调用
|
|
|
|
|
extern "C"
|
|
|
|
|
{
|
|
|
|
|
void MODELDATAAPI importComponents(int caseId, const char* addcomponentsId);
|
|
|
|
|
void MODELDATAAPI importGeometry(int caseId, char* addcomponentsId);
|
|
|
|
|
void MODELDATAAPI addBC(int caseId, int id, char* bctypetostring);
|
|
|
|
|
void MODELDATAAPI setValue(int caseID, char* variable, char* stype, char* svalue);
|
|
|
|
|
void MODELDATAAPI setBCValue(int caseID,int index,char* variable, char* stype, char* svalue);
|
2023-12-07 09:20:26 +00:00
|
|
|
|
void MODELDATAAPI setMaterial(int caseID, char* componentIDs, int materialID);
|
2023-05-08 06:32:41 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|