https://mooseframework.inl.gov
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 
12 #include "Component1DConnection.h"
13 
18 {
19 public:
20  Component1DJunction(const InputParameters & params);
21 
22 protected:
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 
41 
42 public:
44 };
Component1DJunction(const InputParameters &params)
std::vector< processor_id_type > _proc_ids
Processor IDs of connected 1D components.
const std::vector< processor_id_type > & getConnectedProcessorIDs()
Gets the processor IDs of the connected 1D components.
Base class for 1D component junctions and boundaries.
virtual void setupMesh() override
Performs mesh setup such as creating mesh or naming mesh sets.
static InputParameters validParams()
virtual void initSecondary() override
Perform secondary initialization, which relies on init() being called for all components.
std::vector< dof_id_type > _connected_elems
Element IDs of connected 1D components.
const std::vector< dof_id_type > & getConnectedElementIDs()
Gets the element IDs of the connected 1D components.
virtual void check() const override
Check the component integrity.
Base class for junctions of 1D components.
subdomain_id_type _junction_subdomain_id
Junction subdomain ID.