https://mooseframework.inl.gov
Loading...
Searching...
No Matches
QuadSubChannelBaseIC.C
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
11#include "QuadSubChannelMesh.h"
12#include "FEProblemBase.h"
13
19
21 : InitialCondition(params), _mesh(getMesh(_fe_problem.mesh()))
22{
23}
24
27{
28 const auto m = dynamic_cast<const QuadSubChannelMesh *>(&mesh);
29 if (m)
30 return dynamic_cast<const QuadSubChannelMesh &>(mesh);
31 else
33 ": This initial condition works only with quadrilateral mesh. Update your input "
34 "file to use [QuadSubChannelMesh] block for mesh.");
35}
static InputParameters validParams()
const std::string & name() const
void mooseError(Args &&... args) const
const QuadSubChannelMesh & getMesh(const MooseMesh &mesh) const
Check that mesh is QuadSubChannelMesh and if not, report an error.
QuadSubChannelBaseIC(const InputParameters &params)
static InputParameters validParams()
Creates the mesh of subchannels in a quadrilateral lattice.
MeshBase & mesh