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.
35 lines
966 B
C++
35 lines
966 B
C++
#include "GlobalDataFactory.h"
|
|
#include "FITK_Interface/FITKInterfaceFlowOF/FITKOFGeometryData.h"
|
|
#include "FITK_Interface/FITKInterfaceFlowOF/FITKOFPhysicsData.h"
|
|
#include "FITK_Interface/FITKInterfaceMesh/FITKUnstructuredFluidMeshVTK.h"
|
|
|
|
|
|
Core::FITKAbstractDataObject *GlobalDataFactory::createMeshData()
|
|
{
|
|
return new Interface::FITKUnstructuredFluidMeshVTK;
|
|
}
|
|
|
|
Core::FITKAbstractDataObject* GlobalDataFactory::createGeoData()
|
|
{
|
|
// 创建几何数据
|
|
return new Interface::FITKOFGeometryData;
|
|
}
|
|
|
|
Core::FITKAbstractDataObject *GlobalDataFactory::createPhysicsData()
|
|
{
|
|
// 创建算例求解的物理场数据
|
|
return new Interface::FITKOFPhysicsData;
|
|
}
|
|
|
|
Core::FITKAbstractDataObject *GlobalDataFactory::createPostData()
|
|
{
|
|
// 创建后处理数据
|
|
return nullptr;
|
|
}
|
|
|
|
QHash<int, Core::FITKAbstractDataObject *> GlobalDataFactory::createOtherData()
|
|
{
|
|
// 不创建其他数据
|
|
return QHash<int, Core::FITKAbstractDataObject *>();
|
|
}
|