PHengLEI-NCCR/Main/include/GridgenIn.h

54 lines
3.0 KiB
C
Raw Normal View History

2024-10-14 09:32:17 +08:00
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// PPPPP H H EEEEE N N GGGGG L EEEEE III +
// P P H H E NN N G L E I +
// PPPPP HHHHH EEEEE N N N G GG L EEEEE I +
// P H H E N N N G G L E I +
// P H H EEEEE N N GGGGG LLLLL EEEEE III +
//------------------------------------------------------------------------+
// Platform for Hybrid Engineering Simulation of Flows +
// China Aerodynamics Research and Development Center +
// (C) Copyright, Since 2010 +
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//! @file GridgenIn.h
//! @brief Explain this file briefly.
//! @author He Xin.
#pragma once
using namespace std;
namespace PHSPACE
{
class Grid;
//! To read the grid such as coordinate and boundary condition information from plot3d/gridgen format file.
//! @param[in ]: structGrids denotes the current computational regions of the structure grids.
//! @param[in ]: numberOfBlocks denotes the number of total grid blocks.
//! @param[in ]: gridgenFile denotes the source file in which the grid stored.
//! @param[in ]: BCFile denotes the source file in which the boundary information stored.
void ReadPlot3dGrid(Grid **&structGrids, int &numberOfBlocks, const string &gridgenFile, const string &BCFile);
void ReadGridgenGrid(Grid **&structGrids, int &numberOfBlocks, const string &gridgenFile, const string &BCFile);
//! To read the grid coordinate from plot3d binary/ASCII format file.
//! @param[in ]: structGrids denotes the current computational regions of the structure grids.
//! @param[in ]: numberOfBlocks denotes the number of total grid blocks.
//! @param[in ]: coordinateFile denotes the source file in which the grid coordinate stored.
void ReadPlot3DCoorBinary(const string &coordinateFile, int &numberOfBlocks, Grid **&structGrids);
void ReadPlot3DCoorASCII(const string &coordinateFile, int &numberOfBlocks, Grid **&structGrids);
//! To read the grid coordinate from gridgen ASCII format file.
//! @param[in ]: structGrids denotes the current computational regions of the structure grids.
//! @param[in ]: numberOfBlocks denotes the number of total grid blocks.
//! @param[in ]: coordinateFile denotes the source file in which the grid coordinate stored.
void ReadGridgenCoorASCII(const string &coordinateFile, int &numberOfBlocks, Grid **&structGrids);
//! To read the grid boundary information from ".inp" format file.
//! @param[in ]: structGrids denotes the current computational regions of the structure grids.
//! @param[in ]: numberOfBlocks denotes the number of total grid blocks.
//! @param[in ]: BCFile denotes the source file in which the grid boundary condition information stored.
void ReadBoundaryFile(Grid **&structGrids, int &numberOfBlocks, const string &BCFile);
int CheckCoorFileIfASCII(const string &coordinateFile);
}