www.mooseframework.org
TiledMesh.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "MooseMesh.h"
13 
14 class TiledMesh : public MooseMesh
15 {
16 public:
18 
20  TiledMesh(const TiledMesh & other_mesh);
21 
22  virtual std::unique_ptr<MooseMesh> safeClone() const override;
23 
24  virtual void buildMesh() override;
25 
26  virtual std::string getFileName() const override;
27 
28 protected:
29  const Real _x_width;
30  const Real _y_width;
31  const Real _z_width;
32 };
virtual std::string getFileName() const override
Returns the name of the mesh file read to produce this mesh if any or an empty string otherwise...
Definition: TiledMesh.C:87
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
Definition: TiledMesh.C:22
const Real _y_width
Definition: TiledMesh.h:30
const Real _x_width
Definition: TiledMesh.h:29
TiledMesh(const InputParameters &parameters)
Definition: TiledMesh.C:62
virtual void buildMesh() override
Must be overridden by child classes.
Definition: TiledMesh.C:93
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:88
const Real _z_width
Definition: TiledMesh.h:31
virtual std::unique_ptr< MooseMesh > safeClone() const override
A safer version of the clone() method that hands back an allocated object wrapped in a smart pointer...
Definition: TiledMesh.C:81
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.