Loading...
Searching...
No Matches
ITHACAassign.C File Reference
#include "ITHACAassign.H"

Go to the source code of this file.

Namespaces

namespace  ITHACAutilities
 Namespace to implement some useful assign operation of OF fields.
 

Functions

template<class TypeField >
PtrList< TypeField > ITHACAutilities::averageSubtract (PtrList< TypeField > fields, Eigen::MatrixXd ind, PtrList< TypeField > &ave)
 A function to compute time-averaged fields for a set of different parameter samples and also the fields with the corresponding averaged subtracted.
 
template PtrList< volScalarField > ITHACAutilities::averageSubtract (PtrList< volScalarField > fields, Eigen::MatrixXd ind, PtrList< volScalarField > &ave)
 
template PtrList< volVectorField > ITHACAutilities::averageSubtract (PtrList< volVectorField > fields, Eigen::MatrixXd ind, PtrList< volVectorField > &ave)
 
template<class TypeField >
TypeField ITHACAutilities::computeAverage (PtrList< TypeField > &fields)
 Calculates the average of a list of fields.
 
template volVectorField ITHACAutilities::computeAverage (PtrList< volVectorField > &fields)
 
template volScalarField ITHACAutilities::computeAverage (PtrList< volScalarField > &fields)
 
template<typename Type >
void ITHACAutilities::assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type value)
 Assign internal field.
 
template void ITHACAutilities::assignIF (GeometricField< scalar, fvPatchField, volMesh > &field, scalar value)
 
template void ITHACAutilities::assignIF (GeometricField< vector, fvPatchField, volMesh > &field, vector value)
 
template<typename Type >
void ITHACAutilities::assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type &value, List< label > &indices)
 Assign internal field.
 
template void ITHACAutilities::assignIF (GeometricField< scalar, fvPatchField, volMesh > &s, scalar &value, List< label > &indices)
 
template void ITHACAutilities::assignIF (GeometricField< vector, fvPatchField, volMesh > &s, vector &value, List< label > &indices)
 
template<typename Type >
void ITHACAutilities::assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type &value, label index)
 Assign internal field.
 
template void ITHACAutilities::assignIF (GeometricField< scalar, fvPatchField, volMesh > &field, scalar &value, label index)
 
template void ITHACAutilities::assignIF (GeometricField< vector, fvPatchField, volMesh > &field, vector &value, label index)
 
void ITHACAutilities::assignONE (volScalarField &s, List< label > &L)
 Assign one to volScalarField.
 
void ITHACAutilities::assignBC (GeometricField< scalar, fvPatchField, volMesh > &s, label BC_ind, double value)
 Assign uniform Boundary Condition to a volScalarField.
 
void ITHACAutilities::assignBC (GeometricField< scalar, fvPatchField, volMesh > &s, label BC_ind, Eigen::MatrixXd valueVec)
 Assign Boundary Condition to a volScalarField.
 
void ITHACAutilities::assignBC (GeometricField< scalar, fvPatchField, volMesh > &s, label BC_ind, List< double > valueList)
 Assign Boundary Condition to a volScalarField.
 
void ITHACAutilities::assignBC (GeometricField< vector, fvPatchField, volMesh > &s, label BC_ind, vector value)
 Assign Boundary Condition to a volVectorField.
 
void ITHACAutilities::assignBC (GeometricField< tensor, fvPatchField, volMesh > &s, label BC_ind, tensor value)
 Assign Boundary Condition to a volTensorField.
 
void ITHACAutilities::assignBC (GeometricField< vector, fvPatchField, volMesh > &s, label BC_ind, Eigen::MatrixXd valueVec)
 Assign Boundary Condition to a volVectorField.
 
void ITHACAutilities::assignBC (GeometricField< tensor, fvPatchField, volMesh > &s, label BC_ind, Eigen::MatrixXd valueVec)
 Assign Boundary Condition to a volTensorField.
 
void ITHACAutilities::assignBC (GeometricField< scalar, fvsPatchField, surfaceMesh > &field, label BC_ind, Eigen::MatrixXd value)
 Assign Boundary Condition to a surfaceField.
 
void ITHACAutilities::assignBC (GeometricField< vector, fvsPatchField, surfaceMesh > &s, label BC_ind, Eigen::MatrixXd valueVec)
 
void ITHACAutilities::assignBC (GeometricField< vector, fvPatchField, volMesh > &s, label BC_ind, List< vector > valueList)
 Assign Boundary Condition to a volVectorField.
 
void ITHACAutilities::assignBC (GeometricField< tensor, fvPatchField, volMesh > &s, label BC_ind, List< tensor > valueList)
 Assign Boundary Condition to a volTensorField.
 
template<typename Type >
void ITHACAutilities::assignBC (GeometricField< Type, fvsPatchField, surfaceMesh > &field, label BC_ind, List< Type > &value)
 Assign Boundary Condition to a surfaceField.
 
template void ITHACAutilities::assignBC (GeometricField< scalar, fvsPatchField, surfaceMesh > &s, label BC_ind, List< scalar > &valueList)
 
template void ITHACAutilities::assignBC (GeometricField< vector, fvsPatchField, surfaceMesh > &s, label BC_ind, List< vector > &valueList)
 
template<typename Type >
void ITHACAutilities::assignBC (GeometricField< Type, fvsPatchField, surfaceMesh > &field, label BC_ind, Type &value)
 Assign Boundary Condition to a surfaceField.
 
template void ITHACAutilities::assignBC (GeometricField< scalar, fvsPatchField, surfaceMesh > &s, label BC_ind, scalar &valueList)
 
template void ITHACAutilities::assignBC (GeometricField< vector, fvsPatchField, surfaceMesh > &s, label BC_ind, vector &valueList)
 
template<typename Type >
void ITHACAutilities::changeNeumann2Dirichlet (GeometricField< Type, fvPatchField, volMesh > &field, Type &value)
 Change all Neumann boundary conditions to Dirichlet boundary conditions.
 
template void ITHACAutilities::changeNeumann2Dirichlet (GeometricField< scalar, fvPatchField, volMesh > &field, scalar &value)
 
template void ITHACAutilities::changeNeumann2Dirichlet (GeometricField< vector, fvPatchField, volMesh > &field, vector &value)
 
template<typename Type >
void ITHACAutilities::assignZeroDirichlet (GeometricField< Type, fvPatchField, volMesh > &field)
 Assign zero internal field.
 
template void ITHACAutilities::assignZeroDirichlet (GeometricField< vector, fvPatchField, volMesh > &field)
 
template void ITHACAutilities::assignZeroDirichlet (GeometricField< scalar, fvPatchField, volMesh > &field)
 
template<typename Type >
void ITHACAutilities::setBoxToValue (GeometricField< Type, fvPatchField, volMesh > &field, Eigen::MatrixXd Box, Type value)
 Set value of a volScalarField to a constant inside a given box.
 
template void ITHACAutilities::setBoxToValue (GeometricField< scalar, fvPatchField, volMesh > &field, Eigen::MatrixXd Box, scalar value)
 
template void ITHACAutilities::setBoxToValue (GeometricField< vector, fvPatchField, volMesh > &field, Eigen::MatrixXd Box, vector value)
 
template<typename Type >
void ITHACAutilities::setIndices2Value (labelList &ind2set, List< Type > &value2set, labelList &movingIDS, List< Type > &originalList)
 Sets some given Indices of a list of objects to given values.
 
template void ITHACAutilities::setIndices2Value (labelList &ind2set, List< scalar > &value2set, labelList &movingIDS, List< scalar > &originalList)
 
template void ITHACAutilities::setIndices2Value (labelList &ind2set, List< vector > &value2set, labelList &movingIDS, List< vector > &originalList)
 
template<class Type >
void ITHACAutilities::changeBCtype (GeometricField< Type, fvPatchField, volMesh > &field, word BCtype, label BC_ind)
 Change the boundary condition type for a GeometricField.
 
template void ITHACAutilities::changeBCtype< scalar > (GeometricField< scalar, fvPatchField, volMesh > &field, word BCtype, label BC_ind)
 
template void ITHACAutilities::changeBCtype< vector > (GeometricField< vector, fvPatchField, volMesh > &field, word BCtype, label BC_ind)
 
template<typename Type >
void ITHACAutilities::assignMixedBC (GeometricField< Type, fvPatchField, volMesh > &field, label BC_ind, List< Type > &value, List< Type > &grad, List< scalar > &valueFrac)
 Assign value of a boundary condition of type "mixed".
 
template void ITHACAutilities::assignMixedBC< scalar > (GeometricField< scalar, fvPatchField, volMesh > &field, label BC_ind, List< scalar > &value, List< scalar > &grad, List< scalar > &valueFrac)
 
template void ITHACAutilities::assignMixedBC< vector > (GeometricField< vector, fvPatchField, volMesh > &field, label BC_ind, List< vector > &value, List< vector > &grad, List< scalar > &valueFrac)
 
template<typename Type >
void ITHACAutilities::normalizeFields (PtrList< GeometricField< Type, fvPatchField, volMesh > > &fields)
 Normalize list of Geometric fields.
 
template void ITHACAutilities::normalizeFields (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields)
 
template void ITHACAutilities::normalizeFields (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields)
 
template<typename Type >
Eigen::MatrixXd ITHACAutilities::getValues (GeometricField< Type, fvPatchField, volMesh > &field, labelList &indices)
 
template<>
Eigen::MatrixXd ITHACAutilities::getValues (GeometricField< vector, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz)
 
template<>
Eigen::MatrixXd ITHACAutilities::getValues (GeometricField< scalar, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz)
 
template<typename T >
Eigen::MatrixXd ITHACAutilities::getValues (PtrList< GeometricField< T, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz)
 
template Eigen::MatrixXd ITHACAutilities::getValues (PtrList< GeometricField< scalar, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz)
 
template Eigen::MatrixXd ITHACAutilities::getValues (PtrList< GeometricField< vector, fvPatchField, volMesh > > &fields, labelList &indices, labelList *xyz)