|
|
@ -65,7 +65,7 @@ namespace GUI
|
|
|
|
QTreeWidgetItem* GeometryAndMeshingItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* GeometryAndMeshingItem = new QTreeWidgetItem();
|
|
|
|
GeometryAndMeshingItem->setText(0, tr("Preprocessing"));
|
|
|
|
GeometryAndMeshingItem->setText(0, tr("Preprocessing"));
|
|
|
|
GeometryAndMeshingItem->setData(1, 0, -1);
|
|
|
|
GeometryAndMeshingItem->setData(1, 0, -1);
|
|
|
|
// GeometryAndMeshingItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_GeometryandMeshing));
|
|
|
|
// GeometryAndMeshingItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_GeometryandMeshing));
|
|
|
|
this->addTopLevelItem(GeometryAndMeshingItem);
|
|
|
|
this->addTopLevelItem(GeometryAndMeshingItem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -74,52 +74,52 @@ namespace GUI
|
|
|
|
QTreeWidgetItem* GeometryAndMeshingItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* GeometryAndMeshingItem = new QTreeWidgetItem();
|
|
|
|
GeometryAndMeshingItem->setText(0, tr("Geometry and Meshing"));
|
|
|
|
GeometryAndMeshingItem->setText(0, tr("Geometry and Meshing"));
|
|
|
|
GeometryAndMeshingItem->setData(1, 0, -1);
|
|
|
|
GeometryAndMeshingItem->setData(1, 0, -1);
|
|
|
|
GeometryAndMeshingItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_GeometryandMeshing));
|
|
|
|
GeometryAndMeshingItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_GeometryandMeshing));
|
|
|
|
this->addTopLevelItem(GeometryAndMeshingItem);
|
|
|
|
this->addTopLevelItem(GeometryAndMeshingItem);
|
|
|
|
QTreeWidgetItem* mesh = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* mesh = new QTreeWidgetItem();
|
|
|
|
mesh->setText(0, tr("Mesh001"));
|
|
|
|
mesh->setText(0, tr("Mesh001"));
|
|
|
|
mesh->setData(1, 0, -1);
|
|
|
|
mesh->setData(1, 0, -1);
|
|
|
|
// mesh->setdata(2,0,QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::))
|
|
|
|
// mesh->setdata(2,0,QVariant::fromValue(SolutionAnalysisTreeEnum::))
|
|
|
|
GeometryAndMeshingItem->addChild(mesh);
|
|
|
|
GeometryAndMeshingItem->addChild(mesh);
|
|
|
|
QTreeWidgetItem* ComputationalSetupItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* ComputationalSetupItem = new QTreeWidgetItem();
|
|
|
|
ComputationalSetupItem->setText(0, tr("Computational Setup"));
|
|
|
|
ComputationalSetupItem->setText(0, tr("Computational Setup"));
|
|
|
|
ComputationalSetupItem->setData(1, 0, -1);
|
|
|
|
ComputationalSetupItem->setData(1, 0, -1);
|
|
|
|
ComputationalSetupItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetup));
|
|
|
|
ComputationalSetupItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetup));
|
|
|
|
this->addTopLevelItem(ComputationalSetupItem);
|
|
|
|
this->addTopLevelItem(ComputationalSetupItem);
|
|
|
|
QTreeWidgetItem* TimeModeItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* TimeModeItem = new QTreeWidgetItem();
|
|
|
|
TimeModeItem->setText(0, tr("Time Mode"));
|
|
|
|
TimeModeItem->setText(0, tr("Time Mode"));
|
|
|
|
TimeModeItem->setData(1, 0, -1);
|
|
|
|
TimeModeItem->setData(1, 0, -1);
|
|
|
|
TimeModeItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupTimeMode));
|
|
|
|
TimeModeItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupTimeMode));
|
|
|
|
ComputationalSetupItem->addChild(TimeModeItem);
|
|
|
|
ComputationalSetupItem->addChild(TimeModeItem);
|
|
|
|
QTreeWidgetItem* ComputationalDomainItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* ComputationalDomainItem = new QTreeWidgetItem();
|
|
|
|
ComputationalDomainItem->setText(0, tr("Computational Domain"));
|
|
|
|
ComputationalDomainItem->setText(0, tr("Computational Domain"));
|
|
|
|
ComputationalDomainItem->setData(1, 0, -1);
|
|
|
|
ComputationalDomainItem->setData(1, 0, -1);
|
|
|
|
ComputationalDomainItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomain));
|
|
|
|
ComputationalDomainItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomain));
|
|
|
|
ComputationalSetupItem->addChild(ComputationalDomainItem);
|
|
|
|
ComputationalSetupItem->addChild(ComputationalDomainItem);
|
|
|
|
QTreeWidgetItem* SolverItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* SolverItem = new QTreeWidgetItem();
|
|
|
|
SolverItem->setText(0, tr("Solver"));
|
|
|
|
SolverItem->setText(0, tr("Solver"));
|
|
|
|
SolverItem->setData(1, 0, -1);
|
|
|
|
SolverItem->setData(1, 0, -1);
|
|
|
|
SolverItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolver));
|
|
|
|
SolverItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolver));
|
|
|
|
ComputationalDomainItem->addChild(SolverItem);
|
|
|
|
ComputationalDomainItem->addChild(SolverItem);
|
|
|
|
QTreeWidgetItem* BasicModelItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* BasicModelItem = new QTreeWidgetItem();
|
|
|
|
BasicModelItem->setText(0, tr("Basic Model"));
|
|
|
|
BasicModelItem->setText(0, tr("Basic Model"));
|
|
|
|
BasicModelItem->setData(1, 0, -1);
|
|
|
|
BasicModelItem->setData(1, 0, -1);
|
|
|
|
BasicModelItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverBasicModel));
|
|
|
|
BasicModelItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverBasicModel));
|
|
|
|
SolverItem->addChild(BasicModelItem);
|
|
|
|
SolverItem->addChild(BasicModelItem);
|
|
|
|
QTreeWidgetItem* ViscosityModelItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* ViscosityModelItem = new QTreeWidgetItem();
|
|
|
|
ViscosityModelItem->setText(0, tr("Viscosity Model"));
|
|
|
|
ViscosityModelItem->setText(0, tr("Viscosity Model"));
|
|
|
|
ViscosityModelItem->setData(1, 0, -1);
|
|
|
|
ViscosityModelItem->setData(1, 0, -1);
|
|
|
|
ViscosityModelItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverViscosityModel));
|
|
|
|
ViscosityModelItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverViscosityModel));
|
|
|
|
SolverItem->addChild(ViscosityModelItem);
|
|
|
|
SolverItem->addChild(ViscosityModelItem);
|
|
|
|
QTreeWidgetItem* NumericalMethodsItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* NumericalMethodsItem = new QTreeWidgetItem();
|
|
|
|
NumericalMethodsItem->setText(0, tr("Numerical Methods"));
|
|
|
|
NumericalMethodsItem->setText(0, tr("Numerical Methods"));
|
|
|
|
NumericalMethodsItem->setData(1, 0, -1);
|
|
|
|
NumericalMethodsItem->setData(1, 0, -1);
|
|
|
|
NumericalMethodsItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverNumericalMethods));
|
|
|
|
NumericalMethodsItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverNumericalMethods));
|
|
|
|
SolverItem->addChild(NumericalMethodsItem);
|
|
|
|
SolverItem->addChild(NumericalMethodsItem);
|
|
|
|
QTreeWidgetItem* MotionPropertiesItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* MotionPropertiesItem = new QTreeWidgetItem();
|
|
|
|
MotionPropertiesItem->setText(0, tr("Motion Properties"));
|
|
|
|
MotionPropertiesItem->setText(0, tr("Motion Properties"));
|
|
|
|
MotionPropertiesItem->setData(1, 0, -1);
|
|
|
|
MotionPropertiesItem->setData(1, 0, -1);
|
|
|
|
MotionPropertiesItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMotionProperties));
|
|
|
|
MotionPropertiesItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMotionProperties));
|
|
|
|
ComputationalDomainItem->addChild(MotionPropertiesItem);
|
|
|
|
ComputationalDomainItem->addChild(MotionPropertiesItem);
|
|
|
|
QTreeWidgetItem* motion1Item = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* motion1Item = new QTreeWidgetItem();
|
|
|
|
motion1Item->setText(0, tr("motion-1"));
|
|
|
|
motion1Item->setText(0, tr("motion-1"));
|
|
|
@ -128,47 +128,47 @@ namespace GUI
|
|
|
|
QTreeWidgetItem* BoundaryConditionsItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* BoundaryConditionsItem = new QTreeWidgetItem();
|
|
|
|
BoundaryConditionsItem->setText(0, tr("Boundary Conditions"));
|
|
|
|
BoundaryConditionsItem->setText(0, tr("Boundary Conditions"));
|
|
|
|
BoundaryConditionsItem->setData(1, 0, -1);
|
|
|
|
BoundaryConditionsItem->setData(1, 0, -1);
|
|
|
|
BoundaryConditionsItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverBoundaryConditions));
|
|
|
|
BoundaryConditionsItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverBoundaryConditions));
|
|
|
|
ComputationalDomainItem->addChild(BoundaryConditionsItem);
|
|
|
|
ComputationalDomainItem->addChild(BoundaryConditionsItem);
|
|
|
|
QTreeWidgetItem* pressureinletItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* pressureinletItem = new QTreeWidgetItem();
|
|
|
|
pressureinletItem->setText(0, tr("Pressure-Inlet"));
|
|
|
|
pressureinletItem->setText(0, tr("Pressure-Inlet"));
|
|
|
|
pressureinletItem->setData(1, 0, -1);
|
|
|
|
pressureinletItem->setData(1, 0, -1);
|
|
|
|
pressureinletItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverBoundaryConditionsPressureInlet));
|
|
|
|
pressureinletItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverBoundaryConditionsPressureInlet));
|
|
|
|
BoundaryConditionsItem->addChild(pressureinletItem);
|
|
|
|
BoundaryConditionsItem->addChild(pressureinletItem);
|
|
|
|
QTreeWidgetItem* InitializationItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* InitializationItem = new QTreeWidgetItem();
|
|
|
|
InitializationItem->setText(0, tr("Initialization"));
|
|
|
|
InitializationItem->setText(0, tr("Initialization"));
|
|
|
|
InitializationItem->setData(1, 0, -1);
|
|
|
|
InitializationItem->setData(1, 0, -1);
|
|
|
|
InitializationItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverInitialization));
|
|
|
|
InitializationItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverInitialization));
|
|
|
|
ComputationalDomainItem->addChild(InitializationItem);
|
|
|
|
ComputationalDomainItem->addChild(InitializationItem);
|
|
|
|
QTreeWidgetItem* ComputationalControlItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* ComputationalControlItem = new QTreeWidgetItem();
|
|
|
|
ComputationalControlItem->setText(0, tr("Computational Control"));
|
|
|
|
ComputationalControlItem->setText(0, tr("Computational Control"));
|
|
|
|
ComputationalControlItem->setData(1, 0, -1);
|
|
|
|
ComputationalControlItem->setData(1, 0, -1);
|
|
|
|
ComputationalControlItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverComputationalControl));
|
|
|
|
ComputationalControlItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverComputationalControl));
|
|
|
|
ComputationalDomainItem->addChild(ComputationalControlItem);
|
|
|
|
ComputationalDomainItem->addChild(ComputationalControlItem);
|
|
|
|
QTreeWidgetItem* ReferenceQuantityItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* ReferenceQuantityItem = new QTreeWidgetItem();
|
|
|
|
ReferenceQuantityItem->setText(0, tr("Reference Quantity"));
|
|
|
|
ReferenceQuantityItem->setText(0, tr("Reference Quantity"));
|
|
|
|
ReferenceQuantityItem->setData(1, 0, -1);
|
|
|
|
ReferenceQuantityItem->setData(1, 0, -1);
|
|
|
|
ReferenceQuantityItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverComputationalControlReferenceQuantity));
|
|
|
|
ReferenceQuantityItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverComputationalControlReferenceQuantity));
|
|
|
|
ComputationalControlItem->addChild(ReferenceQuantityItem);
|
|
|
|
ComputationalControlItem->addChild(ReferenceQuantityItem);
|
|
|
|
QTreeWidgetItem* MonitorsItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* MonitorsItem = new QTreeWidgetItem();
|
|
|
|
MonitorsItem->setText(0, tr("Monitors"));
|
|
|
|
MonitorsItem->setText(0, tr("Monitors"));
|
|
|
|
MonitorsItem->setData(1, 0, -1);
|
|
|
|
MonitorsItem->setData(1, 0, -1);
|
|
|
|
MonitorsItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMonitors));
|
|
|
|
MonitorsItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMonitors));
|
|
|
|
ComputationalDomainItem->addChild(MonitorsItem);
|
|
|
|
ComputationalDomainItem->addChild(MonitorsItem);
|
|
|
|
QTreeWidgetItem* ResidualItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* ResidualItem = new QTreeWidgetItem();
|
|
|
|
ResidualItem->setText(0, tr("Residual"));
|
|
|
|
ResidualItem->setText(0, tr("Residual"));
|
|
|
|
ResidualItem->setData(1, 0, -1);
|
|
|
|
ResidualItem->setData(1, 0, -1);
|
|
|
|
ResidualItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMonitorsResidual));
|
|
|
|
ResidualItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMonitorsResidual));
|
|
|
|
MonitorsItem->addChild(ResidualItem);
|
|
|
|
MonitorsItem->addChild(ResidualItem);
|
|
|
|
QTreeWidgetItem* AerodynamicForceItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* AerodynamicForceItem = new QTreeWidgetItem();
|
|
|
|
AerodynamicForceItem->setText(0, tr("Aerodynamic Force"));
|
|
|
|
AerodynamicForceItem->setText(0, tr("Aerodynamic Force"));
|
|
|
|
AerodynamicForceItem->setData(1, 0, -1);
|
|
|
|
AerodynamicForceItem->setData(1, 0, -1);
|
|
|
|
AerodynamicForceItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMonitorsAerodynamicForce));
|
|
|
|
AerodynamicForceItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMonitorsAerodynamicForce));
|
|
|
|
MonitorsItem->addChild(AerodynamicForceItem);
|
|
|
|
MonitorsItem->addChild(AerodynamicForceItem);
|
|
|
|
QTreeWidgetItem* TurbomachineryPerformanceItem = new QTreeWidgetItem();
|
|
|
|
QTreeWidgetItem* TurbomachineryPerformanceItem = new QTreeWidgetItem();
|
|
|
|
TurbomachineryPerformanceItem->setText(0, tr("Turbomachinery Performance"));
|
|
|
|
TurbomachineryPerformanceItem->setText(0, tr("Turbomachinery Performance"));
|
|
|
|
TurbomachineryPerformanceItem->setData(1, 0, -1);
|
|
|
|
TurbomachineryPerformanceItem->setData(1, 0, -1);
|
|
|
|
TurbomachineryPerformanceItem->setData(2, 0, QVariant::fromValue(GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMonitorsTurbomachineryPerformance));
|
|
|
|
TurbomachineryPerformanceItem->setData(2, 0, QVariant::fromValue(SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverMonitorsTurbomachineryPerformance));
|
|
|
|
MonitorsItem->addChild(TurbomachineryPerformanceItem);
|
|
|
|
MonitorsItem->addChild(TurbomachineryPerformanceItem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -230,14 +230,14 @@ namespace GUI
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int objID = item->data(1, 0).toInt();
|
|
|
|
int objID = item->data(1, 0).toInt();
|
|
|
|
GUI::SolutionAnalysisTreeEnum treeType = item->data(2, 0).value<GUI::SolutionAnalysisTreeEnum>();
|
|
|
|
SolutionAnalysisTreeEnum treeType = item->data(2, 0).value<SolutionAnalysisTreeEnum>();
|
|
|
|
Interface::FITKGeoEnum::FITKGeometryComType geometryType = item->data(3, 0).value<Interface::FITKGeoEnum::FITKGeometryComType>();
|
|
|
|
Interface::FITKGeoEnum::FITKGeometryComType geometryType = item->data(3, 0).value<Interface::FITKGeoEnum::FITKGeometryComType>();
|
|
|
|
QString name = "";
|
|
|
|
QString name = "";
|
|
|
|
switch (treeType) {
|
|
|
|
switch (treeType) {
|
|
|
|
case GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupTimeMode:
|
|
|
|
case SolutionAnalysisTreeEnum::SATree_ComputationalSetupTimeMode:
|
|
|
|
name = "actionTimeModeEdit";
|
|
|
|
name = "actionTimeModeEdit";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case GUI::SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverBasicModel:
|
|
|
|
case SolutionAnalysisTreeEnum::SATree_ComputationalSetupComputationalDomainSolverBasicModel:
|
|
|
|
name = "actionBasicModelEdit";
|
|
|
|
name = "actionBasicModelEdit";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|