IOSS  2.0
Iotr_Tensor.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 
7 #ifndef IOSS_Iotr_Tensor_h
8 #define IOSS_Iotr_Tensor_h
9 
10 #include "Ioss_VariableType.h" // for VariableType
11 #include <Ioss_Transform.h> // for Transform, Factory
12 #include <string> // for string
13 namespace Ioss {
14  class Field;
15 } // namespace Ioss
16 
17 namespace Iotr {
18 
19  class Tensor_Factory : public Factory
20  {
21  public:
22  static const Tensor_Factory *factory();
23 
24  private:
26  Ioss::Transform *make(const std::string &type) const override;
27  };
28 
29  class Tensor : public Ioss::Transform
30  {
31  friend class Tensor_Factory;
32  enum TranType {
42  };
43 
44  public:
45  const Ioss::VariableType *output_storage(const Ioss::VariableType *in) const override;
46  int output_count(int in) const override;
47 
48  protected:
49  explicit Tensor(const std::string &type);
50 
51  bool internal_execute(const Ioss::Field &field, void *data) override;
52 
53  private:
55  };
56 } // namespace Iotr
57 
58 #endif // IOSS_Iotr_Tensor_h
Iotr::Tensor::INVALID
@ INVALID
Definition: Iotr_Tensor.h:33
Iotr::Tensor::SPHERICAL
@ SPHERICAL
Definition: Iotr_Tensor.h:35
Ioss::Field
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:22
Ioss::VariableType
A generic variable type.
Definition: Ioss_VariableType.h:61
Iotr::Tensor_Factory::Tensor_Factory
Tensor_Factory()
Definition: Iotr_Tensor.C:24
Ioss::Transform
Definition: Ioss_Transform.h:21
Iotr::Tensor::type_
TranType type_
Definition: Iotr_Tensor.h:54
Iotr::Tensor::DEVIATOR
@ DEVIATOR
Definition: Iotr_Tensor.h:36
Iotr::Tensor::INVARIANT1
@ INVARIANT1
Definition: Iotr_Tensor.h:39
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Iotr::Tensor::output_count
int output_count(int in) const override
Definition: Iotr_Tensor.C:87
Iotr::Tensor
Definition: Iotr_Tensor.h:30
Iotr::Tensor::INVARIANT3
@ INVARIANT3
Definition: Iotr_Tensor.h:41
Iotr
A namespace for Ioss transformations.
Definition: Ioss_Transform.h:41
Iotr::Tensor::Tensor
Tensor(const std::string &type)
Definition: Iotr_Tensor.C:38
Iotr::Tensor::output_storage
const Ioss::VariableType * output_storage(const Ioss::VariableType *in) const override
Definition: Iotr_Tensor.C:68
Iotr::Tensor::internal_execute
bool internal_execute(const Ioss::Field &field, void *data) override
Definition: Iotr_Tensor.C:93
Ioss_Transform.h
Iotr::Tensor_Factory
Definition: Iotr_Tensor.h:20
Iotr::Tensor::INVARIANT2
@ INVARIANT2
Definition: Iotr_Tensor.h:40
Iotr::Tensor_Factory::make
Ioss::Transform * make(const std::string &type) const override
Definition: Iotr_Tensor.C:36
Iotr::Tensor::TRACE
@ TRACE
Definition: Iotr_Tensor.h:34
Iotr::Tensor::TranType
TranType
Definition: Iotr_Tensor.h:32
Iotr::Factory
Definition: Ioss_Transform.h:46
anonymous_namespace{cth_pressure_map.C}::data
std::vector< char > data
Definition: cth_pressure_map.C:48
Iotr::Tensor::MAGNITUDE
@ MAGNITUDE
Definition: Iotr_Tensor.h:37
Iotr::Tensor::INVARIANTS
@ INVARIANTS
Definition: Iotr_Tensor.h:38
Iotr::Tensor_Factory::factory
static const Tensor_Factory * factory()
Definition: Iotr_Tensor.C:18
Ioss_VariableType.h