Loading...
Searching...
No Matches
viewFactorModel Class Referenceabstract

A base class for viewFactor models. More...

#include <viewFactorModel.H>

Inheritance diagram for viewFactorModel:
Collaboration diagram for viewFactorModel:

Public Member Functions

 TypeName ("viewFactorModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, viewFactorModel, mesh,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
 Selection table.
 viewFactorModel (const viewFactorModel &)=delete
 No copy construct.
void operator= (const viewFactorModel &)=delete
 No copy assignment.
 viewFactorModel (const fvMesh &mesh, const dictionary &dict)
 Constructor.
virtual ~viewFactorModel ()
 Destructor.
virtual void calculate ()
 Calculate the view factors.

Static Public Member Functions

static autoPtr< viewFactorModelNew (const fvMesh &mesh, const dictionary &dict)
 Selector.

Protected Member Functions

virtual scalarListList calculate (const labelListList &visibleFaceFaces, const pointField &compactCoarseCf, const vectorField &compactCoarseSf, const UList< List< vector > > &compactFineSf, const UList< List< point > > &compactFineCf, const UList< List< point > > &compactPoints, const labelUList &compactPatchId) const =0
 Calculate the view factors using run-time selectable model.

Static Protected Member Functions

static void writeRays (const fileName &fName, const pointField &compactCf, const labelListList &visibleFaceFaces)
 Write ray geometry to file.

Protected Attributes

const fvMeshmesh_
 Reference to the mesh database.
autoPtr< raySearchEnginesearchEnginePtr_
 Run-time selectable ray search engine.
bool writeViewFactors_
 Flag to write the view factor field.
bool writeRays_
 Flag to write the ray geometry.

Detailed Description

A base class for viewFactor models.

Usage
Minimal example in <constant>/viewFactorsDict:
// Mandatory entries
writeViewFactors    <bool>;

// Optional entries
writeRays           <bool>;

where the entries mean:

Property Description Type Reqd Deflt
writeViewFactors Flag to write the view factor field bool yes -
writeRays Flag to write the ray geometry bool no false
Source files

Definition at line 99 of file viewFactorModel.H.

Constructor & Destructor Documentation

◆ viewFactorModel() [1/2]

viewFactorModel ( const viewFactorModel & )
delete

No copy construct.

References viewFactorModel().

Referenced by declareRunTimeSelectionTable(), operator=(), and viewFactorModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ viewFactorModel() [2/2]

viewFactorModel ( const fvMesh & mesh,
const dictionary & dict )

Constructor.

References dict, and mesh.

◆ ~viewFactorModel()

virtual ~viewFactorModel ( )
virtual

Destructor.

Member Function Documentation

◆ writeRays()

void writeRays ( const fileName & fName,
const pointField & compactCf,
const labelListList & visibleFaceFaces )
staticprotected

Write ray geometry to file.

◆ calculate() [1/2]

virtual scalarListList calculate ( const labelListList & visibleFaceFaces,
const pointField & compactCoarseCf,
const vectorField & compactCoarseSf,
const UList< List< vector > > & compactFineSf,
const UList< List< point > > & compactFineCf,
const UList< List< point > > & compactPoints,
const labelUList & compactPatchId ) const
protectedpure virtual

Calculate the view factors using run-time selectable model.

◆ TypeName()

TypeName ( "viewFactorModel" )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr ,
viewFactorModel ,
mesh ,
(const fvMesh &mesh, const dictionary &dict) ,
(mesh, dict)  )

Selection table.

References dict, mesh, and viewFactorModel().

Here is the call graph for this function:

◆ New()

autoPtr< viewFactorModel > New ( const fvMesh & mesh,
const dictionary & dict )
static

Selector.

References dict, and mesh.

◆ operator=()

void operator= ( const viewFactorModel & )
delete

No copy assignment.

References viewFactorModel().

Here is the call graph for this function:

◆ calculate() [2/2]

virtual void calculate ( )
virtual

Calculate the view factors.

Member Data Documentation

◆ mesh_

const fvMesh& mesh_
protected

Reference to the mesh database.

Definition at line 108 of file viewFactorModel.H.

◆ searchEnginePtr_

autoPtr<raySearchEngine> searchEnginePtr_
protected

Run-time selectable ray search engine.

Definition at line 113 of file viewFactorModel.H.

◆ writeViewFactors_

bool writeViewFactors_
protected

Flag to write the view factor field.

Definition at line 118 of file viewFactorModel.H.

◆ writeRays_

bool writeRays_
protected

Flag to write the ray geometry.

Definition at line 123 of file viewFactorModel.H.


The documentation for this class was generated from the following file:
  • applications/utilities/preProcessing/createViewFactors/viewFactorModels/viewFactorModel/viewFactorModel/viewFactorModel.H