|
|
/**********************************************************************
|
|
|
* @file FITKFlowOFHDF5Writer.h
|
|
|
* @brief HDF5文件写出, 继承自线程任务。
|
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
|
* @date 2024-09-07
|
|
|
*********************************************************************/
|
|
|
#ifndef __FITKFLOWOFHDF5WRITER_H__
|
|
|
#define __FITKFLOWOFHDF5WRITER_H__
|
|
|
|
|
|
#include "FITKFlowOFIOHDF5API.h"
|
|
|
#include "FITK_Kernel/FITKCore/FITKCoreMacros.h"
|
|
|
#include "FITK_Interface/FITKInterfaceIO/FITKAbstractHDF5Writer.h"
|
|
|
|
|
|
namespace IO
|
|
|
{
|
|
|
/**
|
|
|
* @brief HDF5文件写出
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
* @date 2024-05-30
|
|
|
*/
|
|
|
class FITKFLOWOFIOHDF5API FITKFlowOFHDF5Writer : public FITKAbstractHDF5Writer
|
|
|
{
|
|
|
public:
|
|
|
/**
|
|
|
* @brief Construct a new FITKAbaqusHDF5Writer object
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
* @date 2024-05-30
|
|
|
*/
|
|
|
explicit FITKFlowOFHDF5Writer() = default;
|
|
|
virtual ~FITKFlowOFHDF5Writer() = default;
|
|
|
|
|
|
/**
|
|
|
* @brief 重写run函数
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
* @date 2024-04-10
|
|
|
*/
|
|
|
void run() override;
|
|
|
|
|
|
/**
|
|
|
* @brief 发送计算进度
|
|
|
* @param Progress 进度百分比
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
* @date 2024-04-10
|
|
|
*/
|
|
|
void sendCalculateProgress(int Progress);
|
|
|
|
|
|
/**
|
|
|
* @brief 打印控制台消息
|
|
|
* @param[i] level 打印级别 1 normal 2 warning 3error
|
|
|
* @param[i] str 数据
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
* @date 2024-04-10
|
|
|
*/
|
|
|
void consoleMessage(int level, const QString& str) override;
|
|
|
|
|
|
private:
|
|
|
|
|
|
/**
|
|
|
* @brief 写出版本
|
|
|
* @return 状态 true成功, false失败
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
* @date 2024-04-10
|
|
|
*/
|
|
|
bool writeVersion();
|
|
|
/**
|
|
|
* @brief 写出几何数据
|
|
|
* @return bool
|
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
|
* @date 2024-09-07
|
|
|
*/
|
|
|
bool writeDataGeometry();
|
|
|
|
|
|
bool writeGeoComponent();
|
|
|
|
|
|
bool writeGeometryRefine();
|
|
|
|
|
|
bool writeGeoMeshSize();
|
|
|
|
|
|
bool writeMaterialPoint();
|
|
|
|
|
|
bool writeRegionMesh();
|
|
|
|
|
|
bool writeMesh();
|
|
|
|
|
|
bool writePhysicsData();
|
|
|
|
|
|
private:
|
|
|
};
|
|
|
}
|
|
|
|
|
|
|
|
|
#endif
|