change of namespace from pFlow to pFlow::postprocessData

This commit is contained in:
Hamidreza
2025-04-24 23:31:43 +03:30
parent d5ea338ab3
commit be807e4a71
49 changed files with 317 additions and 177 deletions

View File

@ -1,4 +1,3 @@
/*------------------------------- phasicFlow ---------------------------------
O C enter of
O O E ngineering and
@ -25,7 +24,7 @@ Licence:
#include "postprocessGlobals.hpp"
#include "postprocessComponent.hpp"
pFlow::postprocessData::postprocessData
pFlow::postprocessData::postprocessData::postprocessData
(
const systemControl &control,
timeValue startTime
@ -45,7 +44,7 @@ pFlow::postprocessData::postprocessData
)
)
{
postProcessGlobals::defaultDir__ = CWD()/pFlow::postProcessGlobals::defaultRelDir__;
defaultDir__ = CWD()/defaultRelDir__;
// if dictionary is not provided, no extra action is required.
if( !dict_.fileExist() || !dict_.headerOk() )
@ -98,7 +97,7 @@ pFlow::postprocessData::postprocessData
}
bool pFlow::postprocessData::execute()
bool pFlow::postprocessData::postprocessData::execute()
{
if( inSimulation_ && !activeInSimulation_() ) return true;
@ -118,7 +117,7 @@ bool pFlow::postprocessData::execute()
return true;
}
bool pFlow::postprocessData::write() const
bool pFlow::postprocessData::postprocessData::write() const
{
if( inSimulation_ && !activeInSimulation_() ) return true;
@ -129,7 +128,7 @@ bool pFlow::postprocessData::write() const
continue;
}
if(!component->write(postProcessGlobals::defaultDir__/component->name()))
if(!component->write(defaultDir__/component->name()))
{
fatalErrorInFunction
<<"Error occured in writing postprocess component: "
@ -140,7 +139,7 @@ bool pFlow::postprocessData::write() const
return true;
}
void pFlow::postprocessData::setOutputDirectory(const fileSystem &path) const
void pFlow::postprocessData::postprocessData::setOutputDirectory(const fileSystem &path) const
{
postProcessGlobals::defaultDir__ = path;
defaultDir__ = path;
}

View File

@ -28,14 +28,18 @@ Licence:
#include "fieldsDataBase.hpp"
#include "postprocessComponent.hpp"
namespace pFlow
namespace pFlow
{
class systemControl;
class Time;
class timeInfo;
}
namespace pFlow::postprocessData
{
/**
* @class postprocessData
@ -109,6 +113,6 @@ public:
void setOutputDirectory(const fileSystem& path)const;
};
} // namespace pFlow
} // namespace pFlow::postprocessData
#endif // __postprocessData_hpp__

View File

@ -23,7 +23,7 @@ Licence:
#include "fileSystem.hpp"
namespace pFlow::postProcessGlobals
namespace pFlow::postprocessData
{
static fileSystem defaultDir__;

View File

@ -22,9 +22,11 @@ Licence:
#define __postprocessTimeControl_hpp__
#include "baseTimeControl.hpp"
#include "dictionary.hpp"
namespace pFlow
namespace pFlow::postprocessData
{
class postprocessTimeControl
:
public baseTimeControl
@ -60,6 +62,6 @@ postprocessTimeControl(
// Additional methods and members can be added here
};
} // namespace pFlow
} // namespace pFlow::postprocessData
#endif // __postprocessTimeControl_hpp__