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.
AppFlow/FITK_Component/FITKOFDictWriter/FITKOFControlDictWriter.h

85 lines
1.9 KiB
C

/**
* @file FITKOFControlDictWriter.h
* @brief ControlDict
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-24
*/
#ifndef __FITKFLOWOFCONTROLWRITER_H__
#define __FITKFLOWOFCONTROLWRITER_H__
#include "FITKOFDictWriterAPI.h"
#include "FITKOFAbstractDictWriter.h"
namespace Interface
{
class FITKAbstractRegionMeshSize;
class FITKAbstractOFSolver;
}
namespace DICT
{
class FITKDictVector;
class FITKDictArray;
}
namespace IO
{
/**
* @brief ControlMeshDict
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-15
*/
class FITKOFControlDictWriter : public FITKOFAbstractDictWriter
{
public:
explicit FITKOFControlDictWriter();
virtual ~FITKOFControlDictWriter();
/**
* @brief
* @param[i] filePath
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
void setFilePath(const QString& filePath) override;
/**
* @brief run
* @return true: false:
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-15
*/
bool run() override;
/**
* @brief
* @return QString
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
QString getFileName() override;
private:
/**
* @brief FoamFile
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
void dictObjectFoamFile();
bool controlDictW();
bool writeDefaultControl();
private:
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
QString m_fileName{};
};
}
#endif