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.
|
|
|
|
#include "FITKOFMeshReader.h"
|
|
|
|
|
#include "FITK_Interface/FITKInterfaceMesh/FITKUnstructuredFluidMeshVTK.h"
|
|
|
|
|
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
|
|
|
|
|
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
|
|
|
|
|
#include "FITKOpenFOAMMeshReader.h"
|
|
|
|
|
#include <qcoreapplication.h>
|
|
|
|
|
|
|
|
|
|
QString IO::FITKOFMeshReader::getComponentName()
|
|
|
|
|
{
|
|
|
|
|
return "IO::FITKOFMeshReader";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool IO::FITKOFMeshReader::exec(const int indexPort)
|
|
|
|
|
{
|
|
|
|
|
if (m_Folder.isEmpty() || m_Mesh == nullptr) return false;
|
|
|
|
|
// 读取网格
|
|
|
|
|
IO::FITKOpenFOAMMeshReader openFOAMMeshReader;
|
|
|
|
|
openFOAMMeshReader.setFileName(m_Folder);
|
|
|
|
|
openFOAMMeshReader.setDataObject(m_Mesh);
|
|
|
|
|
return openFOAMMeshReader.read();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void IO::FITKOFMeshReader::setMeshFolder(QString folder)
|
|
|
|
|
{
|
|
|
|
|
m_Folder = folder;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void IO::FITKOFMeshReader::setMeshObj(Interface::FITKUnstructuredFluidMeshVTK * mesh)
|
|
|
|
|
{
|
|
|
|
|
m_Mesh = mesh;
|
|
|
|
|
}
|