Loading...
Searching...
No Matches
ITHACAassign.H File Reference

Header file of the ITHACAassign file. More...

#include "fvCFD.H"
#include "IOmanip.H"
#include "freestreamFvPatchField.H"
#include <sys/stat.h>
#include <unistd.h>
#include <Eigen/Eigen>
#include <functional>
#include "./colormod.H"
#include "polyMeshTools.H"
#include <chrono>
#include "mixedFvPatchFields.H"
#include "fvMeshSubset.H"
#include "Foam2Eigen.H"
#include "ITHACAerror.H"
#include "ITHACAparameters.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<class TypeField >
TypeField ITHACAutilities::computeAverage (PtrList< TypeField > &fields)
 Calculates the average of a list of fields.
 
template<typename Type >
void ITHACAutilities::assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type value)
 Assign internal field.
 
template<typename Type >
void ITHACAutilities::assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type &value, List< label > &indices)
 Assign internal field.
 
template<typename Type >
void ITHACAutilities::assignIF (GeometricField< Type, fvPatchField, volMesh > &field, Type &value, label index)
 Assign internal field.
 
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< 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.
 
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)
 
template<typename Type >
void ITHACAutilities::assignBC (GeometricField< Type, fvsPatchField, surfaceMesh > &field, label BC_ind, List< Type > &value)
 Assign Boundary Condition to a surfaceField.
 
template<typename Type >
void ITHACAutilities::assignBC (GeometricField< Type, fvsPatchField, surfaceMesh > &field, label BC_ind, Type &value)
 Assign Boundary Condition to a surfaceField.
 
template<typename Type >
void ITHACAutilities::changeNeumann2Dirichlet (GeometricField< Type, fvPatchField, volMesh > &field, Type &value)
 Change all Neumann boundary conditions to Dirichlet boundary conditions.
 
template<typename Type >
void ITHACAutilities::assignZeroDirichlet (GeometricField< Type, fvPatchField, volMesh > &field)
 Assign zero internal 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<class Type >
void ITHACAutilities::changeBCtype (GeometricField< Type, fvPatchField, volMesh > &field, word BCtype, label BC_ind)
 Change the boundary condition type for a GeometricField.
 
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<typename Type >
void ITHACAutilities::assignMixedBC (GeometricField< Type, fvPatchField, volMesh > &field, label BC_ind, Eigen::MatrixXd &value, Eigen::MatrixXd &grad, Eigen::MatrixXd &valueFrac)
 Assign value of a boundary condition of type "mixed".
 
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<typename Type >
void ITHACAutilities::normalizeFields (PtrList< GeometricField< Type, fvPatchField, volMesh > > &fields)
 Normalize list of Geometric fields.
 
template<typename Type >
Eigen::MatrixXd ITHACAutilities::getValues (GeometricField< Type, fvPatchField, volMesh > &field, labelList &indices, labelList *xyz=NULL)
 ///
 
template<typename Type >
Eigen::MatrixXd ITHACAutilities::getValues (PtrList< GeometricField< Type, fvPatchField, volMesh > > &field, labelList &indices, labelList *xyz=NULL)
 Gets the values from a list of indices.
 

Detailed Description

Header file of the ITHACAassign file.

Definition in file ITHACAassign.H.