https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ReadExodusMeshVars.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 "libmesh/fe_type.h"
13#include "libmesh/replicated_mesh.h"
14#include "libmesh/equation_systems.h"
15#include "libmesh/exodusII_io.h"
16#include "MooseTypes.h"
17
18namespace libMesh
19{
20class System;
21class DofMap;
22}
23
32{
33public:
34 ReadExodusMeshVars(const libMesh::FEType & param_type,
35 const std::string & exodus_mesh,
36 const std::string var_name);
43 std::vector<Real> getParameterValues(const unsigned int timestep) const;
44
45private:
48 std::unique_ptr<libMesh::EquationSystems> _eq;
50 std::unique_ptr<libMesh::ExodusII_IO> _exodusII_io;
51
53 const std::string _var_name;
54};
Utility function to read a single variable off an Exodus mesh for optimization problem This class wil...
std::unique_ptr< libMesh::EquationSystems > _eq
libMesh::Parallel::Communicator _communicator
libMesh::ReplicatedMesh _mesh
std::unique_ptr< libMesh::ExodusII_IO > _exodusII_io
std::vector< Real > getParameterValues(const unsigned int timestep) const
Initializes parameter data and sets bounds in the main optmiization application getParameterValues is...
const std::string _var_name
variable name read from Exodus mesh
libMesh::System * _sys
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...