Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
fluid_dynamics_matrix_free_operators.h File Reference
#include <core/bdf.h>
#include <core/fluid_dynamics_boundary_conditions.h>
#include <core/mortar_coupling_manager.h>
#include <core/sdirk_stage_data.h>
#include <core/simulation_control.h>
#include <solvers/simulation_parameters.h>
#include <deal.II/base/timer.h>
#include <deal.II/lac/dynamic_sparsity_pattern.h>
#include <deal.II/lac/trilinos_sparse_matrix.h>
#include <deal.II/matrix_free/fe_evaluation.h>
#include <deal.II/matrix_free/matrix_free.h>
#include <deal.II/matrix_free/operators.h>
#include <deal.II/matrix_free/tools.h>
Include dependency graph for fluid_dynamics_matrix_free_operators.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TimeSteppingData
class  NavierStokesOperatorBase< dim, number >
class  NavierStokesStabilizedOperator< dim, number >
class  NavierStokesNonNewtonianStabilizedOperator< dim, number >

Functions

template<int dim, typename Number>
VectorizedArray< Number > evaluate_function (const Function< dim > &function, const Point< dim, VectorizedArray< Number > > &p_vectorized, const unsigned int component=0)
template<int dim, typename Number>
Tensor< 1, dim, VectorizedArray< Number > > evaluate_function_gradient (const Function< dim > &function, const Point< dim, VectorizedArray< Number > > &p_vectorized)
template<int dim, typename Number, int components>
Tensor< 1, components, VectorizedArray< Number > > evaluate_function (const Function< dim > &function, const Point< dim, VectorizedArray< Number > > &p_vectorized)
bool boundary_condition_requires_face_assembly (BoundaryConditions::FluidDynamicsBoundaryType boundary_type)

Function Documentation

◆ boundary_condition_requires_face_assembly()

bool boundary_condition_requires_face_assembly ( BoundaryConditions::FluidDynamicsBoundaryType boundary_type)
inline

Check if a boundary condition type requires face assembly in the matrix-free operator.

Parameters
boundary_typeType of the boundary condition.
Returns
true if the boundary condition requires face assembly.

Definition at line 142 of file fluid_dynamics_matrix_free_operators.h.

References BoundaryConditions::function_weak, BoundaryConditions::neumann_traction, BoundaryConditions::outlet, and BoundaryConditions::pressure.

◆ evaluate_function() [1/2]

template<int dim, typename Number, int components>
Tensor< 1, components, VectorizedArray< Number > > evaluate_function ( const Function< dim > & function,
const Point< dim, VectorizedArray< Number > > & p_vectorized )

Evaluate the value of a function at a batch of points to obtain a tensor of vectorized arrays.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
NumberAbstract type for number across the class (i.e., double).
componentsNumber of solution components.
Parameters
functionFunction to evaluate.
p_vectorizedBatch of points to evaluate function at.
Returns
Tensor<1, components, VectorizedArray<Number>> Batch of evaluated values.

Definition at line 119 of file fluid_dynamics_matrix_free_operators.h.

◆ evaluate_function() [2/2]

template<int dim, typename Number>
VectorizedArray< Number > evaluate_function ( const Function< dim > & function,
const Point< dim, VectorizedArray< Number > > & p_vectorized,
const unsigned int component = 0 )

Evaluate the value of a function at a batch of points to obtain a vectorized array of numbers.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
NumberAbstract type for number across the class (i.e., double).
Parameters
functionFunction to evaluate.
p_vectorizedBatch of points to evaluate function at.
componentComponent of the function to evaluate.
Returns
VectorizedArray<Number> Batch of evaluated values.

Definition at line 63 of file fluid_dynamics_matrix_free_operators.h.

◆ evaluate_function_gradient()

template<int dim, typename Number>
Tensor< 1, dim, VectorizedArray< Number > > evaluate_function_gradient ( const Function< dim > & function,
const Point< dim, VectorizedArray< Number > > & p_vectorized )

Evaluate the gradient of a function at a batch of points to obtain a tensor of vectorized arrays.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
NumberAbstract type for number across the class (i.e., double).
Parameters
functionFunction to evaluate.
p_vectorizedBatch of points to evaluate function at.
Returns
Tensor<1, components, VectorizedArray<Number>> Batch of evaluated gradients.

Definition at line 89 of file fluid_dynamics_matrix_free_operators.h.