https://mooseframework.inl.gov
CartesianGridPositions.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 "Positions.h"
13 
18 {
19 public:
21 
23 
24  void initialize() override;
25 
26 protected:
28  const Point _center;
29 
30  // Extent of the Cartesian lattice
32  const Real _dx;
34  const Real _dy;
36  const Real _dz;
37 
39  const unsigned int _nx;
41  const unsigned int _ny;
43  const unsigned int _nz;
44 
46  std::vector<std::vector<std::vector<unsigned int>>> _pattern;
47 
49  std::set<unsigned int> _include_in_pattern;
50 };
const unsigned int _nz
Number of points along the Z direction.
std::set< unsigned int > _include_in_pattern
List of the pattern locations to include. Include all if empty.
const Real _dx
Extent of the lattice in the X direction.
Creates positions (points) following an Cartesian grid.
const Point _center
Center of the lattice.
CartesianGridPositions(const InputParameters &parameters)
static InputParameters validParams()
const unsigned int _ny
Number of points along the Y direction.
const Real _dy
Extent of the lattice in the Y direction.
const Real _dz
Extent of the lattice in the Z direction.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< std::vector< std::vector< unsigned int > > > _pattern
2D pattern of the pins to select (if specified)
const InputParameters & parameters() const
const unsigned int _nx
Number of points along the X direction.