https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Component1DJunction.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
13
18{
19public:
21
22protected:
23 virtual void setupMesh() override;
24 virtual void initSecondary() override;
25 virtual void check() const override;
26
28 const std::vector<dof_id_type> & getConnectedElementIDs() { return _connected_elems; }
30 const std::vector<processor_id_type> & getConnectedProcessorIDs() { return _proc_ids; }
31
32 // TODO: make _connected_elems and _proc_ids private (after applications
33 // switch to using the getter methods)
35 std::vector<dof_id_type> _connected_elems;
37 std::vector<processor_id_type> _proc_ids;
38
40 subdomain_id_type _junction_subdomain_id;
41
42public:
44};
Base class for 1D component junctions and boundaries.
Base class for junctions of 1D components.
const std::vector< processor_id_type > & getConnectedProcessorIDs()
Gets the processor IDs of the connected 1D components.
const std::vector< dof_id_type > & getConnectedElementIDs()
Gets the element IDs of the connected 1D components.
std::vector< dof_id_type > _connected_elems
Element IDs of connected 1D components.
std::vector< processor_id_type > _proc_ids
Processor IDs of connected 1D components.
subdomain_id_type _junction_subdomain_id
Junction subdomain ID.
virtual void initSecondary() override
Perform secondary initialization, which relies on init() being called for all components.
virtual void check() const override
Check the component integrity.
static InputParameters validParams()
virtual void setupMesh() override
Performs mesh setup such as creating mesh or naming mesh sets.