29 lines
793 B
C++
29 lines
793 B
C++
#include "Pre_FluentToPHengLEI_Unstruct.h"
|
|
#include "OverLappingGrid.h"
|
|
|
|
using namespace std;
|
|
|
|
namespace PHSPACE
|
|
{
|
|
|
|
void Fluent2PHengLEI()
|
|
{
|
|
string fromGridFile = GlobalDataBase::GetStrParaFromDB("from_gfile");
|
|
string outGridFile = GlobalDataBase::GetStrParaFromDB("out_gfile");
|
|
|
|
Pre_FluentToPHengLEI_Unstruct fluentGridConversion(fromGridFile);
|
|
|
|
fluentGridConversion.Run();
|
|
int numberOfBlocks = fluentGridConversion.GetNumberofBlocks();
|
|
Grid **grids = fluentGridConversion.GetGrids();
|
|
|
|
ConstructGlobalInterfaceLink(grids, numberOfBlocks);
|
|
DumpGrid(outGridFile, grids, numberOfBlocks);
|
|
fluentGridConversion.WriteAdditionalInformation(outGridFile);
|
|
DumpCharacteristicBoundary(outGridFile, grids, numberOfBlocks);
|
|
|
|
fluentGridConversion.Clear();
|
|
}
|
|
|
|
}
|