KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
unary_abs_expression.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Suneth Warnakulasuriya
11 //
12 
13 #pragma once
14 
15 // System includes
16 #include <string>
17 
18 // Project includes
19 #include "expression/expression.h"
20 
21 namespace Kratos {
22 
25 
29 class KRATOS_API(KRATOS_CORE) UnaryAbsExpression : public Expression {
30 public:
33 
34  using IndexType = std::size_t;
35 
39 
41 
45 
47 
48  double Evaluate(
49  const IndexType EntityIndex,
50  const IndexType EntityDataBeginIndex,
51  const IndexType ComponentIndex) const override;
52 
53  const std::vector<IndexType> GetItemShape() const override;
54 
55  IndexType GetMaxDepth() const override;
56 
57  std::string Info() const override;
58 
60 protected:
63 
65 
67 };
68 
69 } // namespace Kratos
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
Base class or all the expression types.
Definition: expression.h:38
Kratos::intrusive_ptr< Expression > Pointer
Definition: expression.h:44
std::size_t IndexType
Definition: expression.h:48
Kratos::intrusive_ptr< const Expression > ConstPointer
Definition: expression.h:46
Unary abs expression used to get the absolute values of a given input expression.
Definition: unary_abs_expression.h:29
const Expression::ConstPointer mpSourceExpression
Definition: unary_abs_expression.h:64
std::string GetItemShape(const std::vector< IndexType > &rShape)
Definition: binary_expression.cpp:27
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
double Evaluate(const PolynomialType &rPolynomial, double x)
Definition: polynomial_utilities.cpp:77
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21