From 0ea045f43ef09c8e198a8a3776db6e9cfaf6938f Mon Sep 17 00:00:00 2001 From: Suneth Warnakulasuriya Date: Fri, 2 Feb 2024 15:02:04 +0100 Subject: [PATCH] Update docs/pages/Kratos/Expressions/General/Expression_Types.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com> --- docs/pages/Kratos/Expressions/General/Expression_Types.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/pages/Kratos/Expressions/General/Expression_Types.md b/docs/pages/Kratos/Expressions/General/Expression_Types.md index 98fe310cd22f..eb4ec82bb76d 100644 --- a/docs/pages/Kratos/Expressions/General/Expression_Types.md +++ b/docs/pages/Kratos/Expressions/General/Expression_Types.md @@ -14,6 +14,13 @@ There are four types of expressions. * `ConditionExpression` * `ElementExpression` +## `Expression` + +`Expression` is the lowest level class that everything else is built on top of. It models an array of numeric values (scalars, vectors, matrices, etc.), supports arithmetic operations, but is not related to any container in Kratos. To create an `Expression` or write an existing one, you can use one of the derived classes of `ExpressionIO`. + +TODO: add an example (@matekelemen) - requires exposing the `Input` and `Output` nested classes of `VariableExpressionIO` to python. + + ## Nodal Expression Nodal expressions are used to store data related to nodal quantities. They may be historical or non-historical. Following code snippet illustrtes creating a nodal expression