You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/CFDStruct/CFDStructMain/CFDStructDefine.h

74 lines
2.4 KiB
C

#ifndef CFDSTRUCTDEFINE_H
#define CFDSTRUCTDEFINE_H
#include <QCoreApplication>
#include <QObject>
#define QVA_GLOBAL(x) QVariant::fromValue(x)
#define QVA_QS(x) QVariant::fromValue(QString(x))
#define QVA_FROM_QS(x) qvariant_cast<QString>(x)
#ifndef QVAR_DECLARE
#define QVAR_DECLARE
Q_DECLARE_METATYPE(int *)
Q_DECLARE_METATYPE(bool *)
Q_DECLARE_METATYPE(double *)
Q_DECLARE_METATYPE(QString *)
Q_DECLARE_METATYPE(QString)
#endif
// 结构树中节点
enum class SolutionAnalysisTreeEnum {
SATree_GeometryandMeshing,
SATree_ComputationalSetup,
SATree_ComputationalSetupTimeMode,
SATree_ComputationalSetupComputationalDomain,
SATree_ComputationalSetupComputationalDomainSolver,
SATree_ComputationalSetupComputationalDomainSolverBasicModel,
SATree_ComputationalSetupComputationalDomainSolverViscosityModel,
SATree_ComputationalSetupComputationalDomainSolverNumericalMethods,
SATree_ComputationalSetupComputationalDomainSolverMotionProperties,
SATree_ComputationalSetupComputationalDomainSolverBoundaryConditions,
SATree_ComputationalSetupComputationalDomainSolverBoundaryConditionsPressureInlet,
SATree_ComputationalSetupComputationalDomainSolverInitialization,
SATree_ComputationalSetupComputationalDomainSolverComputationalControl,
SATree_ComputationalSetupComputationalDomainSolverComputationalControlReferenceQuantity,
SATree_ComputationalSetupComputationalDomainSolverMonitors,
SATree_ComputationalSetupComputationalDomainSolverMonitorsResidual,
SATree_ComputationalSetupComputationalDomainSolverMonitorsAerodynamicForce,
SATree_ComputationalSetupComputationalDomainSolverMonitorsTurbomachineryPerformance,
};
Q_DECLARE_METATYPE(SolutionAnalysisTreeEnum)
// 属性变化信号
enum class SolutionAnalysisModuleProperty {
Time_Mode,
Basic_Model,
Viscosity_Model,
NUumerical_Methods,
Motion_Properties,
Boundary_Conditions,
Initialization,
Computational_Control_Reference_Quantity,
Computational_Control,
Monitors_Residual,
Monitors_AerodynamicForce,
Monitors_Tubomachinery_Performance,
UNKNOW,
};
// 模板json文件路径
const std::string templateJSONPath = QCoreApplication::applicationDirPath().toStdString() + "..\\Resources\\template.json";
// 输出json文件路径
const std::string caseJSONPath = QCoreApplication::applicationDirPath().toStdString() + "..\\Resources\\case-01.json";
#endif // CFDSTRUCTDEFINE_H