mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
Binary conversion from pointFiled files to vtk format
- all vtk files are stored in the /particles/ folder - terminal output is modified - time series file are added. files with extntions .vtk.series can be loaded into paraview
This commit is contained in:
@ -167,6 +167,11 @@ pFlow::fileSystem pFlow::fileSystem::canonical
|
||||
return res;
|
||||
}
|
||||
|
||||
pFlow::fileSystem pFlow::fileSystem::relative(const fileSystem &base)const
|
||||
{
|
||||
return fileSystem( std::filesystem::relative(path_, base.path_));
|
||||
}
|
||||
|
||||
bool pFlow::fileSystem::dirExist
|
||||
(
|
||||
) const
|
||||
|
@ -175,6 +175,9 @@ public:
|
||||
/// Canonical path of this (it should exist)
|
||||
fileSystem canonical()const;
|
||||
|
||||
/// relative path of this this with respect to base
|
||||
fileSystem relative(const fileSystem& base)const;
|
||||
|
||||
/// Only operate on dir path
|
||||
/// Check if the dir path exists
|
||||
bool dirExist()const;
|
||||
|
@ -36,9 +36,9 @@ pFlow::pointSorting::pointSorting(const dictionary & dict)
|
||||
)
|
||||
{
|
||||
if( performSorting_() )
|
||||
REPORT(1)<<"Point sorting is "<<Yellow_Text("active")<<" in simulation"<<END_REPORT;
|
||||
REPORT(2)<<"Point sorting is "<<Yellow_Text("active")<<" in simulation"<<END_REPORT;
|
||||
else
|
||||
REPORT(1)<<"Point sorting is "<<Yellow_Text("inactive")<<" in simulation"<<END_REPORT;
|
||||
REPORT(2)<<"Point sorting is "<<Yellow_Text("inactive")<<" in simulation"<<END_REPORT;
|
||||
|
||||
}
|
||||
pFlow::uint32IndexContainer
|
||||
|
@ -113,7 +113,7 @@ pFlow::pointStructure::pointStructure
|
||||
(
|
||||
simulationDomain::create(control)
|
||||
),
|
||||
pointSorting_(simulationDomain_->subDictOrCreate("pointSorting")),
|
||||
//pointSorting_(simulationDomain_->subDictOrCreate("pointSorting")),
|
||||
boundaries_
|
||||
(
|
||||
*this
|
||||
@ -130,6 +130,8 @@ pFlow::pointStructure::pointStructure
|
||||
"Error in reading from file "<<IOobject::path()<<endl;
|
||||
fatalExit;
|
||||
}
|
||||
|
||||
pointSorting_ = makeUnique<pointSorting>(simulationDomain_->subDictOrCreate("pointSorting"));
|
||||
}
|
||||
|
||||
|
||||
@ -155,7 +157,7 @@ pFlow::pointStructure::pointStructure(
|
||||
(
|
||||
simulationDomain::create(control)
|
||||
),
|
||||
pointSorting_(simulationDomain_->subDictOrCreate("pointSorting")),
|
||||
//pointSorting_(simulationDomain_->subDictOrCreate("pointSorting")),
|
||||
boundaries_
|
||||
(
|
||||
*this
|
||||
@ -167,15 +169,16 @@ pFlow::pointStructure::pointStructure(
|
||||
"Error in seting up pointStructure"<<endl;
|
||||
fatalExit;
|
||||
}
|
||||
pointSorting_ = makeUnique<pointSorting>(simulationDomain_->subDictOrCreate("pointSorting"));
|
||||
}
|
||||
|
||||
bool pFlow::pointStructure::beforeIteration()
|
||||
{
|
||||
const timeInfo ti = TimeInfo();
|
||||
|
||||
if(pointSorting_.sortTime(ti.iter(), ti.t(), ti.dt()))
|
||||
if(pointSorting_().sortTime(ti.iter(), ti.t(), ti.dt()))
|
||||
{
|
||||
auto sortedIndices = pointSorting_.getSortedIndices(
|
||||
auto sortedIndices = pointSorting_().getSortedIndices(
|
||||
simulationDomain_().globalBox(),
|
||||
pointPositionDevice(),
|
||||
activePointsMaskDevice()
|
||||
|
@ -54,7 +54,7 @@ private:
|
||||
//// - data members
|
||||
uniquePtr<simulationDomain> simulationDomain_ = nullptr;
|
||||
|
||||
pointSorting pointSorting_;
|
||||
uniquePtr<pointSorting> pointSorting_ = nullptr;
|
||||
|
||||
boundaryList boundaries_;
|
||||
|
||||
|
Reference in New Issue
Block a user