Loading...
Searching...
No Matches
ITHACAparallel Class Reference

Class for parallel handling, it has several functions to deal with parallel problems, the class is implemented as a singletone. More...

#include <ITHACAparallel.H>

Public Member Functions

 ITHACAparallel ()=delete
 Delete empty constructor.
 
template<class Type >
List< List< Type > > combineFields (GeometricField< Type, fvPatchField, volMesh > &field)
 Function to get a global field from a parallel one.
 
template<class type >
GeometricField< type, fvPatchField, volMesh > constructGlobalField (GeometricField< type, fvPatchField, volMesh > field)
 
template<>
List< List< scalar > > combineFields (GeometricField< scalar, fvPatchField, volMesh > &field)
 
template<>
List< List< vector > > combineFields (GeometricField< vector, fvPatchField, volMesh > &field)
 
template<>
List< List< scalar > > combineFields (GeometricField< scalar, fvPatchField, volMesh > &field)
 

Static Public Member Functions

static ITHACAparallelgetInstance (fvMesh &mesh, Time &localTime)
 Gets an instance of ithacaparallel, to be used if the instance is not existing.
 
static ITHACAparallelgetInstance ()
 Gets an instance of ithacaparallel, to be used if the instance is already existing.
 
static void suspendMPI ()
 Function to sumpend MPI.
 
static void resumeMPI ()
 Function to resume MPI.
 

Public Attributes

label N_IF_glob
 Totoal number of internal field cells.
 
label N_BF
 Number of Boundary Patches without considering processors.
 
autoPtr< labelIOList > indices
 Cell proc addressing.
 
autoPtr< labelIOList > indicesF
 Face proc addressing.
 
autoPtr< labelList > Gsize_BF
 Boundary Field variables representing the total number of faces for each processor.
 
autoPtr< List< labelList > > IndFaceLocal
 Indexing.
 
autoPtr< labelList > Lsize_BF
 Local size at the boundary.
 
autoPtr< labelList > Start
 StartFace on the gloabl Mesh.
 
Time & runTime
 runTime defined locally
 
fvMesh & mesh
 Mesh object defined locally.
 

Static Public Attributes

static List< int > oldProcIDs_
 ID of the OLD process.
 
static List< int > newProcIDs_
 ID of the NEW process.
 

Detailed Description

Class for parallel handling, it has several functions to deal with parallel problems, the class is implemented as a singletone.

Definition at line 39 of file ITHACAparallel.H.

Constructor & Destructor Documentation

◆ ITHACAparallel()

ITHACAparallel::ITHACAparallel ( )
delete

Delete empty constructor.

Member Function Documentation

◆ combineFields() [1/4]

template<>
List< List< scalar > > ITHACAparallel::combineFields ( GeometricField< scalar, fvPatchField, volMesh > & field)

Definition at line 133 of file ITHACAparallel.C.

◆ combineFields() [2/4]

template<>
List< List< scalar > > ITHACAparallel::combineFields ( GeometricField< scalar, fvPatchField, volMesh > & field)

◆ combineFields() [3/4]

template<class Type >
List< List< Type > > ITHACAparallel::combineFields ( GeometricField< Type, fvPatchField, volMesh > & field)

Function to get a global field from a parallel one.

◆ combineFields() [4/4]

template<>
List< List< vector > > ITHACAparallel::combineFields ( GeometricField< vector, fvPatchField, volMesh > & field)

Definition at line 175 of file ITHACAparallel.C.

◆ constructGlobalField()

template<class type >
GeometricField< type, fvPatchField, volMesh > ITHACAparallel::constructGlobalField ( GeometricField< type, fvPatchField, volMesh > field)

Definition at line 131 of file ITHACAparallel.H.

◆ getInstance() [1/2]

ITHACAparallel * ITHACAparallel::getInstance ( )
static

Gets an instance of ithacaparallel, to be used if the instance is already existing.

Returns
The instance.

Definition at line 18 of file ITHACAparallel.C.

◆ getInstance() [2/2]

ITHACAparallel * ITHACAparallel::getInstance ( fvMesh & mesh,
Time & localTime )
static

Gets an instance of ithacaparallel, to be used if the instance is not existing.

Parameters
meshThe mesh
localTimeThe runtime object
Returns
The instance.

Definition at line 9 of file ITHACAparallel.C.

◆ resumeMPI()

void ITHACAparallel::resumeMPI ( )
static

Function to resume MPI.

Definition at line 125 of file ITHACAparallel.C.

◆ suspendMPI()

void ITHACAparallel::suspendMPI ( )
static

Function to sumpend MPI.

Definition at line 116 of file ITHACAparallel.C.

Member Data Documentation

◆ Gsize_BF

autoPtr<labelList> ITHACAparallel::Gsize_BF

Boundary Field variables representing the total number of faces for each processor.

Definition at line 100 of file ITHACAparallel.H.

◆ IndFaceLocal

autoPtr< List<labelList> > ITHACAparallel::IndFaceLocal

Indexing.

Definition at line 103 of file ITHACAparallel.H.

◆ indices

autoPtr<labelIOList> ITHACAparallel::indices

Cell proc addressing.

Definition at line 94 of file ITHACAparallel.H.

◆ indicesF

autoPtr<labelIOList> ITHACAparallel::indicesF

Face proc addressing.

Definition at line 97 of file ITHACAparallel.H.

◆ Lsize_BF

autoPtr<labelList> ITHACAparallel::Lsize_BF

Local size at the boundary.

Definition at line 106 of file ITHACAparallel.H.

◆ mesh

fvMesh& ITHACAparallel::mesh

Mesh object defined locally.

Definition at line 121 of file ITHACAparallel.H.

◆ N_BF

label ITHACAparallel::N_BF

Number of Boundary Patches without considering processors.

Definition at line 91 of file ITHACAparallel.H.

◆ N_IF_glob

label ITHACAparallel::N_IF_glob

Totoal number of internal field cells.

Definition at line 88 of file ITHACAparallel.H.

◆ newProcIDs_

List< int > ITHACAparallel::newProcIDs_
static

ID of the NEW process.

Definition at line 115 of file ITHACAparallel.H.

◆ oldProcIDs_

List< int > ITHACAparallel::oldProcIDs_
static

ID of the OLD process.

Definition at line 112 of file ITHACAparallel.H.

◆ runTime

Time& ITHACAparallel::runTime

runTime defined locally

Definition at line 118 of file ITHACAparallel.H.

◆ Start

autoPtr<labelList> ITHACAparallel::Start

StartFace on the gloabl Mesh.

Definition at line 109 of file ITHACAparallel.H.


The documentation for this class was generated from the following files: