Public Member Functions | Protected Attributes | List of all members
DAFunctionVariableVolSum Class Reference
Inheritance diagram for DAFunctionVariableVolSum:
Inheritance graph
[legend]
Collaboration diagram for DAFunctionVariableVolSum:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("variableVolSum")
 
 DAFunctionVariableVolSum (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName)
 
virtual ~DAFunctionVariableVolSum ()
 
virtual scalar calcFunction ()
 calculate the value of objective function More...
 
- Public Member Functions inherited from DAFunction
 TypeName ("DAFunction")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, DAFunction, dictionary,(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName),(mesh, daOption, daModel, daIndex, functionName))
 
 DAFunction (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName)
 
virtual ~DAFunction ()
 
void clear ()
 clear up members More...
 
void calcFunctionSources ()
 calculate DAFunction::faceSources_ and DAFunction::cellSources_ More...
 
word getFunctionName ()
 return the name of objective function More...
 
word getFunctionType ()
 return the part of objective function More...
 
word getFunctionTimeOp ()
 return the time operator such as final, sum, average, variance More...
 
const labelList & getFaceSources () const
 return DAFunction::faceSources_ More...
 
const labelList & getCellSources () const
 return DAFunction::cellSources_ More...
 
void calcRefVar (scalar &functionValue)
 calculate (var-ref)^2 More...
 

Protected Attributes

word varName_
 name of the variable More...
 
word varType_
 type of the variable either vector or scalar More...
 
label index_
 if vector which element/index? More...
 
label isSquare_
 whether to take a square of the variable More...
 
label divByTotalVol_
 whether to normalize the volume sum with the total volume More...
 
label multiplyVol_
 whether to multiply the variable by the volume More...
 
- Protected Attributes inherited from DAFunction
const fvMesh & mesh_
 fvMesh More...
 
const DAOptiondaOption_
 DAOption object. More...
 
const DAModeldaModel_
 DAModel object. More...
 
const DAIndexdaIndex_
 DAIndex object. More...
 
word functionName_
 the name of the objective function More...
 
word functionType_
 the type of the objective function More...
 
word timeOp_
 time operator such as final, sum, or average More...
 
dictionary functionDict_
 dictionary containing the information for the objective function More...
 
labelList faceSources_
 a sorted list of all face sources for the objective function More...
 
labelList cellSources_
 a sorted list of all cell sources for the objective function More...
 
scalar scale_
 scale of the objective function More...
 
label calcRefVar_
 whether to calculate (obj-ref)^2 More...
 
scalarList ref_
 if calcRefVar_ is True, set the reference value list More...
 

Additional Inherited Members

- Static Public Member Functions inherited from DAFunction
static autoPtr< DAFunctionNew (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName)
 

Detailed Description

Definition at line 26 of file DAFunctionVariableVolSum.H.

Constructor & Destructor Documentation

◆ DAFunctionVariableVolSum()

DAFunctionVariableVolSum ( const fvMesh &  mesh,
const DAOption daOption,
const DAModel daModel,
const DAIndex daIndex,
const word  functionName 
)

◆ ~DAFunctionVariableVolSum()

virtual ~DAFunctionVariableVolSum ( )
inlinevirtual

Definition at line 62 of file DAFunctionVariableVolSum.H.

Member Function Documentation

◆ TypeName()

TypeName ( "variableVolSum"  )

◆ calcFunction()

scalar calcFunction ( )
virtual

Member Data Documentation

◆ varName_

word varName_
protected

◆ varType_

word varType_
protected

type of the variable either vector or scalar

Definition at line 35 of file DAFunctionVariableVolSum.H.

Referenced by DAFunctionVariableVolSum::calcFunction(), and DAFunctionVariableVolSum::DAFunctionVariableVolSum().

◆ index_

label index_
protected

if vector which element/index?

Definition at line 38 of file DAFunctionVariableVolSum.H.

Referenced by DAFunctionVariableVolSum::calcFunction(), and DAFunctionVariableVolSum::DAFunctionVariableVolSum().

◆ isSquare_

label isSquare_
protected

whether to take a square of the variable

Definition at line 41 of file DAFunctionVariableVolSum.H.

Referenced by DAFunctionVariableVolSum::calcFunction(), and DAFunctionVariableVolSum::DAFunctionVariableVolSum().

◆ divByTotalVol_

label divByTotalVol_
protected

whether to normalize the volume sum with the total volume

Definition at line 44 of file DAFunctionVariableVolSum.H.

Referenced by DAFunctionVariableVolSum::calcFunction(), and DAFunctionVariableVolSum::DAFunctionVariableVolSum().

◆ multiplyVol_

label multiplyVol_
protected

whether to multiply the variable by the volume

Definition at line 47 of file DAFunctionVariableVolSum.H.

Referenced by DAFunctionVariableVolSum::calcFunction(), and DAFunctionVariableVolSum::DAFunctionVariableVolSum().


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