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/FITKOFFVSchemesWriter.h

142 lines
3.9 KiB
C

/**********************************************************************
* @file FITKOFFVSchemesWriter.h
* @brief fvSchemes
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-27
*********************************************************************/
#ifndef __FITKFLOWOFFVSCHEMESWRITER_H__
#define __FITKFLOWOFFVSCHEMESWRITER_H__
#include "FITKOFDictWriterAPI.h"
#include "FITKOFAbstractDictWriter.h"
namespace Interface
{
class FITKOFDiscretization;
}
namespace DICT
{
class FITKDictVector;
class FITKDictArray;
class FITKDictGroup;
}
namespace Core
{
class FITKParameter;
}
namespace IO
{
/**
* @brief ControlMeshDict
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-15
*/
class FITKOFFVSchemesWriter : public FITKOFAbstractDictWriter
{
public:
explicit FITKOFFVSchemesWriter();
virtual ~FITKOFFVSchemesWriter();
/**
* @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 writeEmptySchemes();
bool fvSchemesW();
/**
* @brief ()
* @param[i] timeOption
* @return bool
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-28
*/
bool writeDDTSchemes(Core::FITKParameter* timeOption);
/**
* @brief
* @param[i] gradient
* @return bool
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-28
*/
bool writeGradSchemes(Core::FITKParameter* gradient);
bool writeDivSchemesSimple(Interface::FITKOFDiscretization* discretization);
bool writeDivSchemesInter(Interface::FITKOFDiscretization* discretization);
QString getConvectionValue(Core::FITKParameter* vPara);
/**
* @brief
* @param[i] discretization
* @return bool
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-28
*/
bool writeLaplacianSchemes(Interface::FITKOFDiscretization* discretization);
/**
* @brief
* @param[i] interpolation
* @return bool
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-28
*/
bool writeInterpolationSchemes(Core::FITKParameter* interpolation);
/**
* @brief
* @param[i] gradient
* @return bool
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-28
*/
bool writesnGradSchemes(Core::FITKParameter* gradient);
/**
* @brief
* @return bool
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-08-28
*/
bool writeFluxWall();
private:
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
QString m_fileName{};
};
}
#endif