50{
53
55
56 for (const auto & belem : range)
57 {
58 const Elem * elem = belem->_elem;
59 unsigned short int side = belem->_side;
61 SubdomainID last_sub_id = Elem::invalid_subdomain_id;
62
63
65
67 {
68
69
70 std::vector<AuxKernelType *> kernels;
72 kernels,
_tid, std::make_tuple(boundary_id,
true));
73
74 if (!kernels.empty())
75 {
77 const auto sub_id = elem->subdomain_id();
78 if (sub_id != last_sub_id)
79 {
81 last_sub_id = sub_id;
82 }
86
89 if (lower_d_elem)
91
92 const Elem * neighbor = elem->neighbor_ptr(side);
93
94
95
96
97 bool compute_interface =
98 neighbor && neighbor->active() &&
101
102
103
107
109 {
110 std::unordered_set<unsigned int> needed_mat_props;
111 for (const auto & aux : kernels)
112 {
113 const auto & mp_deps = aux->getMatPropDependencies();
114 needed_mat_props.insert(mp_deps.begin(), mp_deps.end());
115 }
117
119
121
122 if (compute_interface)
123 {
127 }
128 }
129
130 for (const auto & aux : kernels)
131 {
132 aux->determineWhetherCoincidentLowerDCalc();
133 aux->compute();
134 aux->insert();
135 }
136
139 }
140 }
141 }
142}
boundary_id_type BoundaryID
subdomain_id_type SubdomainID
void printBoundaryExecutionInformation(unsigned int boundary_id, const std::vector< AuxKernelType * > &kernels) const
Print list of specific objects executed and in which order.
void printGeneralExecutionInformation() const
Print list of object types executed and in which order.
const MaterialWarehouse & getInterfaceMaterialsWarehouse() const
virtual void setCurrentBoundaryID(BoundaryID bid, const THREAD_ID tid) override
sets the current boundary ID in assembly
virtual void swapBackMaterialsFace(const THREAD_ID tid)
virtual void setCurrentSubdomainID(const Elem *elem, const THREAD_ID tid) override
virtual void prepare(const Elem *elem, const THREAD_ID tid) override
void reinitMaterialsNeighbor(SubdomainID blk_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
reinit materials on the neighboring element face
virtual void swapBackMaterialsNeighbor(const THREAD_ID tid)
void clearActiveMaterialProperties(const THREAD_ID tid)
Clear the active material properties.
void reinitElemFace(const Elem *elem, unsigned int side, BoundaryID, const THREAD_ID tid)
virtual void reinitLowerDElem(const Elem *lower_d_elem, const THREAD_ID tid, const std::vector< Point > *const pts=nullptr, const std::vector< Real > *const weights=nullptr) override
virtual MooseMesh & mesh() override
void setActiveMaterialProperties(const std::unordered_set< unsigned int > &mat_prop_ids, const THREAD_ID tid)
Record and set the material properties required by the current computing thread.
void reinitMaterialsFaceOnBoundary(const BoundaryID boundary_id, const SubdomainID blk_id, const THREAD_ID tid, const bool swap_stateful=true, const std::deque< MaterialBase * > *const reinit_mats=nullptr)
reinit materials on element faces on a boundary (internal or external) This specific routine helps us...
void reinitMaterialsBoundary(BoundaryID boundary_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
reinit materials on a boundary
virtual void subdomainSetup(SubdomainID subdomain, const THREAD_ID tid)
void reinitMaterialsInterface(BoundaryID boundary_id, const THREAD_ID tid, bool swap_stateful=true)
virtual void setCurrentLowerDElem(const Elem *const lower_d_elem, const THREAD_ID tid) override
Set the current lower dimensional element.
virtual void reinitNeighbor(const Elem *elem, unsigned int side, const THREAD_ID tid) override
const Elem * getLowerDElem(const Elem *, unsigned short int) const
Returns a const pointer to a lower dimensional element that corresponds to a side of a higher dimensi...
bool hasActiveBoundaryObjects(THREAD_ID tid=0) const
The "SwapBackSentinel" class's destructor guarantees that FEProblemBase::swapBackMaterials{Face,...
std::vector< T * > & queryInto(std::vector< T * > &results, Args &&... args)
queryInto executes the query and stores the results in the given vector.
processor_id_type processor_id() const