Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
ComputeLinearFVGreenGaussGradientFaceThread.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "MooseTypes.h"
13 #include "MooseMesh.h"
14 #include "MooseLinearVariableFV.h"
15 
16 // libmesh
17 #include "libmesh/elem_range.h"
18 #include "libmesh/threads.h"
19 #include "libmesh/linear_implicit_system.h"
20 
21 class FEProblemBase;
22 
35 {
36 public:
44  const unsigned int linear_system_num);
45 
53  using FaceInfoRange = StoredRange<MooseMesh::const_face_info_iterator, const FaceInfo *>;
54 
57  void operator()(const FaceInfoRange & range);
58 
62 
63 protected:
66 
68  const unsigned int _dim;
69 
71  const unsigned int _linear_system_number;
72 
75 
77  const unsigned int _system_number;
78 
81 
84 
87  std::vector<std::unique_ptr<NumericVector<Number>>> & _new_gradient;
88 };
The gradient in a volume using Green Gauss theorem and a cell-centered finite-volume approximation ca...
void join(const ComputeLinearFVGreenGaussGradientFaceThread &y)
Join threads at the end of the execution.
MooseLinearVariableFV< Real > * _current_var
Pointer to the current variable.
void operator()(const FaceInfoRange &range)
Operator which is used to execute the thread over a certain iterator range.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
StoredRange< MooseMesh::const_face_info_iterator, const FaceInfo * > FaceInfoRange
std::vector< std::unique_ptr< NumericVector< Number > > > & _new_gradient
Cache for the new gradient which is being built.
ComputeLinearFVGreenGaussGradientFaceThread(FEProblemBase &fe_problem, const unsigned int linear_system_num)
Class constructor.
const unsigned int _system_number
Global system number (the number of this system in the libmesh equation system)
tbb::split split
const libMesh::LinearImplicitSystem & _linear_system
Reference to the linear system at libmesh level.
const unsigned int _linear_system_number
The number of the linear system on which this thread is acting.
unsigned int THREAD_ID
Definition: MooseTypes.h:209