Utility postProcess is modified to be used in Version 1.0

- counting dictionary is added to postProcess
- Code need to be modified to cleaned (fields in the repository should be removed onces postProcess is passed the next time step)
This commit is contained in:
HRN
2024-11-18 20:27:44 +03:30
parent d3ccf354b7
commit 75fba2710e
28 changed files with 959 additions and 216 deletions

View File

@ -46,8 +46,8 @@ protected:
int32 precision_;
inline static fileSystem defaultRootPath = CWD();
inline static fileSystem defaultCDPath = CWD()/"system"+"controlDict";
inline static fileSystem defaultRootPath = pFlow::CWD();
inline static fileSystem defaultCDPath = pFlow::CWD()/word("system")+word("controlDict");
word convertTimeToName(const real t, const int32 precision)const;

View File

@ -113,7 +113,7 @@ public:
}
template<typename T>
uniquePtr<pointField_H<T>> createUniformPointField_H(word const& name, T value)
uniquePtr<pointField_H<T>> createUniformPointField_H(word const& name, T value, bool regRep = true)
{
if( !checkForPointStructure() )
{
@ -124,21 +124,43 @@ public:
auto& pStruct = repository_.lookupObject<pointStructure>(pointStructureFile__);
auto Ptr = makeUnique<pointField_H<T>>
(
objectFile
if(regRep)
{
auto Ptr = makeUnique<pointField_H<T>>
(
name,
"",
objectFile::READ_NEVER,
objectFile::WRITE_NEVER
),
pStruct,
T{},
value
);
return Ptr;
objectFile
(
name,
"",
objectFile::READ_NEVER,
objectFile::WRITE_NEVER
),
pStruct,
T{},
value
);
return Ptr;
}
else
{
auto Ptr = makeUnique<pointField_H<T>>
(
objectFile
(
name,
"",
objectFile::READ_NEVER,
objectFile::WRITE_NEVER
),
nullptr,
pStruct,
value
);
Ptr().fill(value);
return Ptr;
}
return nullptr;
}
template<typename T>