https://mooseframework.inl.gov
ComputeLinearFVGreenGaussGradientVolumeThread.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 
38 {
39 public:
47  const unsigned int linear_system_num);
48 
56  using ElemInfoRange = StoredRange<MooseMesh::const_elem_info_iterator, const ElemInfo *>;
59  void operator()(const ElemInfoRange & range);
60 
64 
65 protected:
66  // Reference to the problem
68 
70  const unsigned int _dim;
71 
73  const unsigned int _linear_system_number;
74 
77 
79  const unsigned int _system_number;
80 
83 
86 };
StoredRange< MooseMesh::const_elem_info_iterator, const ElemInfo * > ElemInfoRange
The gradient in a volume using Green Gauss theorem and a cell-centered finite-volume approximation ca...
const unsigned int _linear_system_number
The number of the linear system on which this thread is acting.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
void operator()(const ElemInfoRange &range)
Operator which is used to execute the thread over a certain iterator range.
MooseLinearVariableFV< Real > * _current_var
Pointer to the current variable.
tbb::split split
ComputeLinearFVGreenGaussGradientVolumeThread(FEProblemBase &fe_problem, const unsigned int linear_system_num)
Class constructor.
const libMesh::LinearImplicitSystem & _linear_system
Reference to the linear system at libmesh level.
void join(const ComputeLinearFVGreenGaussGradientVolumeThread &y)
Join threads at the end of the execution.
unsigned int THREAD_ID
Definition: MooseTypes.h:209