mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-07-18 03:17:04 +00:00
modify for coupling-cpp and hpp
This commit is contained in:
CMakeLists.txt
DEMSystems
solvers
iterateGeometry
sphereGranFlow
src
Geometry
Integration
AdamsBashforth2
AdamsBashforth3
AdamsBashforth4
AdamsBashforth5
AdamsMoulton3
AdamsMoulton4
AdamsMoulton5
CMakeLists.txtintegration
Interaction
CMakeLists.txt
Models
contactLists
contactSearch
ContactSearch
cells.hppcontactSearch
contactSearchFunctions.hppmethods
NBS.hppNBSCrossLoop.hppNBSLevel.hppNBSLevel0.hppNBSLevels.hppNBSLoop.hppmapperNBS.hppmultiGridNBS.hpp
wallMappings
interaction
sphereInteraction
MotionModel
Particles
CMakeLists.txt
Insertion
Insertion
InsertionRegion
insertion
insertionRegion
shapeMixture
SphereParticles
sphereParticles
sphereShape
dynamicPointStructure
particles
Property
demComponent
phasicFlow
CMakeLists.txt
Kokkos
Timer
algorithms
commandLine
containers
Field
List
Map
Set
Vector
VectorHD
VectorDual.hppVectorDualAlgorithms.hppVectorDuals.hppVectorSingle.hppVectorSingleAlgorithms.hppVectorSingles.hpp
bitsetHD
indexContainer
pointField
span
symArrayHD
triSurfaceField
dictionary
eventSubscriber
fileSystem
globals
random
randomInt32
randomReal
ranges
repository
IOobject
IOfileHeader.cppIOfileHeader.hppIOobject.cppIOobject.hppIOobjectTemplates.cppobjectFile.cppobjectFile.hpp
Time
repository
systemControl
setFieldList
smartPointers
streams
structuredData
box
cylinder
iBox
line
peakableRegion
PeakableRegion
boxRegion
cylinderRegion
peakableRegion
peakableRegionInstantiate.cpppeakableRegions.cpppeakableRegions.hppsphereRegion
pointStructure
pointStructure.cpppointStructure.hpppointStructureKernels.hpp
selectors
pStructSelector
selectBox
selectRandom
selectRange
sphere
trisurfaceStructure
bitTransfer.hppmultiTriSurface.cppmultiTriSurface.hppstlFile.cppstlFile.hpptriSurface.cpptriSurface.hpptriSurfaceKernels.hpptriangleFunctions.hpp
zAxis
typeSelection
types
setHelpers
utilities
Utilities
CMakeLists.txtreadControlDict.cppreadControlDict.hppreadFromTimeFolder.cppreadFromTimeFolder.hpputilityFunctions.hppvtkFile.cppvtkFile.hpp
checkPhasicFlow
geometryPhasicFlow
pFlowToVTK
particlesPhasicFlow
CMakeLists.txt
empty
particlesPhasicFlow.cpppositionOrdered
positionParticles
positionRandom
setFields.hpppostprocessPhasicFlow
CMakeLists.txtIncludeMask.hppIncludeMasks.cppProcessField.hppProcessFields.cppfieldOperations.hppincludeMask.cppincludeMask.hpppointRectCell.hpppostprocess.cpppostprocess.hpppostprocessPhasicFlow.cppprocessField.cppprocessField.hpprectMeshField.hpprectMeshFieldToVTK.hpprectMeshFields.hpprectangleMesh.hpp
169
utilities/postprocessPhasicFlow/processField.hpp
Normal file
169
utilities/postprocessPhasicFlow/processField.hpp
Normal file
@ -0,0 +1,169 @@
|
||||
/*------------------------------- phasicFlow ---------------------------------
|
||||
O C enter of
|
||||
O O E ngineering and
|
||||
O O M ultiscale modeling of
|
||||
OOOOOOO F luid flow
|
||||
------------------------------------------------------------------------------
|
||||
Copyright (C): www.cemf.ir
|
||||
email: hamid.r.norouzi AT gmail.com
|
||||
------------------------------------------------------------------------------
|
||||
Licence:
|
||||
This file is part of phasicFlow code. It is a free software for simulating
|
||||
granular and multiphase flows. You can redistribute it and/or modify it under
|
||||
the terms of GNU General Public License v3 or any other later versions.
|
||||
|
||||
phasicFlow is distributed to help others in their research in the field of
|
||||
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
|
||||
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
-----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __processField_hpp__
|
||||
#define __processField_hpp__
|
||||
|
||||
|
||||
#include "virtualConstructor.hpp"
|
||||
#include "dictionary.hpp"
|
||||
#include "readFromTimeFolder.hpp"
|
||||
#include "includeMask.hpp"
|
||||
#include "pointRectCell.hpp"
|
||||
|
||||
namespace pFlow
|
||||
{
|
||||
|
||||
|
||||
class repository;
|
||||
|
||||
class processField
|
||||
{
|
||||
protected:
|
||||
|
||||
dictionary dict_;
|
||||
|
||||
pointRectCell& pointToCell_;
|
||||
|
||||
mutable readFromTimeFolder timeFolder_;
|
||||
|
||||
word processedFieldName_;
|
||||
|
||||
word fieldName_;
|
||||
|
||||
word fieldType_;
|
||||
|
||||
word operation_;
|
||||
|
||||
word includeMaskType_;
|
||||
|
||||
int32 threshold_ = 1;
|
||||
|
||||
uniquePtr<includeMask> includeMask_ = nullptr;
|
||||
|
||||
bool static getFieldType(
|
||||
const dictionary& dict,
|
||||
readFromTimeFolder& timeFolder,
|
||||
word& fieldName,
|
||||
word& fieldType);
|
||||
|
||||
public:
|
||||
|
||||
TypeInfo("processField");
|
||||
|
||||
processField(const dictionary& dict, pointRectCell& pToCell, repository& rep);
|
||||
|
||||
|
||||
create_vCtor(
|
||||
processField,
|
||||
dictionary,
|
||||
(const dictionary& dict,
|
||||
pointRectCell& pToCell,
|
||||
repository& rep),
|
||||
(dict, pToCell, rep) );
|
||||
|
||||
|
||||
const auto& mesh()const
|
||||
{
|
||||
return pointToCell_.mesh();
|
||||
}
|
||||
|
||||
const auto& pointToCell()const
|
||||
{
|
||||
return pointToCell_;
|
||||
}
|
||||
|
||||
auto& dict()
|
||||
{
|
||||
return dict_;
|
||||
}
|
||||
|
||||
const auto& dict()const
|
||||
{
|
||||
return dict_;
|
||||
}
|
||||
|
||||
auto& timeFolderRepository()
|
||||
{
|
||||
return timeFolder_.db();
|
||||
}
|
||||
|
||||
auto& processedRepository()
|
||||
{
|
||||
return pointToCell_.processedRepository();
|
||||
}
|
||||
|
||||
const word& fieldType()const
|
||||
{
|
||||
return fieldType_;
|
||||
}
|
||||
|
||||
const word& fieldName()const
|
||||
{
|
||||
return fieldName_;
|
||||
}
|
||||
|
||||
bool isUniform()const
|
||||
{
|
||||
return fieldName_ == "uniformField";
|
||||
}
|
||||
|
||||
const word& operation()const
|
||||
{
|
||||
return operation_;
|
||||
}
|
||||
|
||||
auto& timeFolder()
|
||||
{
|
||||
return timeFolder_;
|
||||
}
|
||||
|
||||
const word& includeMaskType()const
|
||||
{
|
||||
return includeMaskType_;
|
||||
}
|
||||
|
||||
auto threshold()const
|
||||
{
|
||||
return threshold_;
|
||||
}
|
||||
|
||||
const word& processedFieldName()const
|
||||
{
|
||||
return processedFieldName_;
|
||||
}
|
||||
|
||||
// requires a class to read pointField from timefolder
|
||||
virtual bool process() = 0;
|
||||
|
||||
virtual bool writeToVTK(iOstream& is) const = 0;
|
||||
|
||||
static
|
||||
uniquePtr<processField> create(
|
||||
const dictionary& dict,
|
||||
pointRectCell& pToCell,
|
||||
repository& rep);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif //__processField_hpp__
|
Reference in New Issue
Block a user