42#include "freestreamFvPatchField.H"
45#pragma GCC diagnostic push
46#pragma GCC diagnostic ignored "-Wold-style-cast"
48#pragma GCC diagnostic pop
51#include "polyMeshTools.H"
53#include "mixedFvPatchFields.H"
54#include "fvMeshSubset.H"
55using namespace std::placeholders;
58#include "ITHACAparameters.H"
72template<
typename Type>
73void assignIF(GeometricField<Type, fvPatchField, volMesh>& field,
85template<
typename Type>
86void assignIF(GeometricField<Type, fvPatchField, volMesh>& field,
87 Type& value, List<label>& indices);
98template<
typename Type>
99void assignIF(GeometricField<Type, fvPatchField, volMesh>& field,
100 Type& value, label index);
109void assignONE(volScalarField& s, List<label>& L);
119void assignBC(GeometricField<scalar, fvPatchField, volMesh>& s, label BC_ind,
129void assignBC(GeometricField<scalar, fvPatchField, volMesh>& s, label BC_ind,
130 Eigen::MatrixXd valueVec);
139void assignBC(GeometricField<scalar, fvPatchField, volMesh>& s, label BC_ind,
140 List<double> valueList);
149void assignBC(GeometricField<vector, pointPatchField, pointMesh>& s,
151 List<double> valueList);
160void assignBC(GeometricField<vector, fvPatchField, volMesh>& s, label BC_ind,
170void assignBC(GeometricField<vector, pointPatchField, pointMesh>& s,
181void assignBC(GeometricField<tensor, fvPatchField, volMesh>& s, label BC_ind,
191void assignBC(GeometricField<vector, fvPatchField, volMesh>& s, label BC_ind,
192 Eigen::MatrixXd valueVec);
201void assignBC(GeometricField<tensor, fvPatchField, volMesh>& s, label BC_ind,
202 Eigen::MatrixXd valueVec);
211void assignBC(GeometricField<vector, pointPatchField, pointMesh>& s,
213 Eigen::MatrixXd valueVec);
222void assignBC(GeometricField<vector, fvPatchField, volMesh>& s, label BC_ind,
223 List<vector> valueList);
232void assignBC(GeometricField<vector, pointPatchField, pointMesh>& s,
234 List<vector> valueList);
243void assignBC(GeometricField<tensor, fvPatchField, volMesh>& s, label BC_ind,
244 List<tensor> valueList);
255void assignBC(GeometricField<scalar, fvsPatchField, surfaceMesh>& field,
256 label BC_ind, Eigen::MatrixXd value);
258void assignBC(GeometricField<vector, fvsPatchField, surfaceMesh>& field,
259 label BC_ind, Eigen::MatrixXd value);
270template<
typename Type>
271void assignBC(GeometricField<Type, fvsPatchField, surfaceMesh>& field,
272 label BC_ind, List<Type>& value);
285template<
typename Type>
286void assignBC(GeometricField<Type, fvsPatchField, surfaceMesh>& field,
287 label BC_ind, Type& value);
298template<
typename Type>
313template<
typename Type>
317#pragma GCC diagnostic push
318#pragma GCC diagnostic ignored "-Wcomment"
340template<
typename Type>
341void setBoxToValue(GeometricField<Type, fvPatchField, volMesh>& field,
342 Eigen::MatrixXd Box, Type value);
343#pragma GCC diagnostic pop
355void changeBCtype(GeometricField<Type, fvPatchField, volMesh>&
356 field, word BCtype, label BC_ind);
369template<
typename Type>
371 labelList& movingIDS, List<Type>& originalList);
384template<
typename Type>
386 label BC_ind, Eigen::MatrixXd& value,
387 Eigen::MatrixXd& grad, Eigen::MatrixXd& valueFrac);
401template<
typename Type>
402void assignMixedBC(GeometricField<Type, fvPatchField, volMesh>& field,
403 label BC_ind, List<Type>& value,
404 List<Type>& grad, List<scalar>& valueFrac);
Header file of the Foam2Eigen class.
Header file of the ITHACAerror file.
Simple header and source file of the Color::Modifier class to change color to the output stream.
Namespace to implement some useful assign operation of OF fields.
void 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".
void assignIF(GeometricField< Type, fvPatchField, volMesh > &s, Type value)
Assign internal field.
void changeNeumann2Dirichlet(GeometricField< Type, fvPatchField, volMesh > &field, Type &value)
Change all Neumann boundary conditions to Dirichlet boundary conditions.
void setToZero(T &f1)
Set a field of type vol[Scalar|Vector|Tensor]Field to 0.
void assignONE(volScalarField &s, List< label > &L)
Assign one to volScalarField.
void setIndices2Value(labelList &ind2set, List< Type > &value2set, labelList &movingIDS, List< Type > &originalList)
Sets some given Indices of a list of objects to given values.
void assignZeroDirichlet(GeometricField< Type, fvPatchField, volMesh > &field)
Assign zero internal field.
void assignBC(GeometricField< scalar, fvPatchField, volMesh > &s, label BC_ind, double value)
Assign uniform Boundary Condition to a volScalarField.
void changeBCtype(GeometricField< Type, fvPatchField, volMesh > &field, word BCtype, label BC_ind)
Change the boundary condition type for a GeometricField.
void setBoxToValue(GeometricField< Type, fvPatchField, volMesh > &field, Eigen::MatrixXd Box, Type value)
Set value of a volScalarField to a constant inside a given box.