https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
19public:
21
23
24 void initialize() override;
25
26protected:
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};
Creates positions (points) following an Cartesian grid.
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 Point _center
Center of the lattice.
const Real _dz
Extent of the lattice in the Z direction.
const Real _dx
Extent of the lattice in the X direction.
const unsigned int _ny
Number of points along the Y direction.
const unsigned int _nx
Number of points along the X direction.
static InputParameters validParams()
const Real _dy
Extent of the lattice in the Y direction.
std::vector< std::vector< std::vector< unsigned int > > > _pattern
2D pattern of the pins to select (if specified)
const InputParameters & parameters() const