#ifndef CFDSTRUCTDEFINE_H #define CFDSTRUCTDEFINE_H #include #define QVA_GLOBAL(x) QVariant::fromValue(x) #define QVA_QS(x) QVariant::fromValue(QString(x)) #define QVA_FROM_QS(x) qvariant_cast(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) #endif // CFDSTRUCTDEFINE_H