pFlowToVTK is added

- this utility is not complete yet.
- geometry should be ajusted to be converted separately
This commit is contained in:
Hamidreza Norouzi
2024-03-29 13:50:02 -07:00
parent 19d1ad343d
commit f288f812fd
11 changed files with 102 additions and 100 deletions

View File

@ -281,6 +281,15 @@ pFlow::fileSystem pFlow::operator /
}
pFlow::fileSystem pFlow::operator /
(
const fileSystem& fs1,
const word& dir2
)
{
return fs1/fileSystem(dir2, "");
}
pFlow::fileSystem pFlow::operator +
(
const fileSystem& fs1,

View File

@ -50,7 +50,13 @@ fileSystem operator /
(
const fileSystem& fs1,
const fileSystem& fs2
);
);
fileSystem operator /
(
const fileSystem& fs1,
const word& dir2
);
fileSystem operator +
(

View File

@ -117,6 +117,15 @@ pFlow::timeControl::timeControl(
checkForOutputToFile();
}
pFlow::real pFlow::timeControl::setTime(real t)
{
real tmp = currentTime_;
currentTime_ = t;
lastSaved_ = t;
checkForOutputToFile();
return tmp;
}
pFlow::word pFlow::timeControl::timeName()const
{
if(managedExternaly_)
@ -167,8 +176,6 @@ void pFlow::timeControl::checkForOutputToFile()
}
outputToFile_ = save;
}
bool pFlow::timeControl::timersReportTime()const

View File

@ -108,14 +108,8 @@ public:
return dt_;
}
real setTime(real t)
{
real tmp = currentTime_;
currentTime_ = t;
lastSaved_ = t;
checkForOutputToFile();
return tmp;
}
real setTime(real t);
void setStopAt(real sT)
{

View File

@ -31,7 +31,6 @@ Licence:
#include "types.hpp"
#include "Time.hpp"
#include "fileDictionary.hpp"
#include "box.hpp"
#include "Timers.hpp"
#include "dynamicLinkLibs.hpp"
#include "Set.hpp"
@ -176,11 +175,6 @@ public:
return settingsDict_().getVal<realx3>("g");
}
/*inline box domain()
{
return box(domainDict().subDict("globalBox"));
}*/
bool operator ++(int);
void setSaveTimeFolder(

View File

@ -147,6 +147,12 @@ public:
{
return simulationDomain_().thisDomain();
}
inline
const auto& extendedDomain()const
{
return boundaries_.extendedDomain();
}
// - IO methods