Skip to content

Commit

Permalink
minor changees
Browse files Browse the repository at this point in the history
  • Loading branch information
CWillberg committed Apr 3, 2024
1 parent 4d4d83b commit 7ac5b17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/man/dev/datamanager.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ fieldNP1 = datamanager.get_field(Fieldname*"NP1"::String)
For node and bond fields (constant and non-constant) the following options are possible.

**Matrix style**

You can switch between vector and matrix. If you give the keyword Matrix_or_Vector = "Vector" you get vector of length degree of freedom for each node or bond. If Matrix_or_Vector = "Matrix" each node or bond gets matrix dof $\times$ dof
```julia
datamanager.create_node_field(Fieldname::String, Type_of_variable::Type, Matrix_or_Vector::String, Degree_of_freedom::Int64)
```
**Pre-defined Values**

You can add an optional value at the end. The default is zero.

```julia
Expand All @@ -78,8 +80,10 @@ Free size fields can be constant or non-constant. The size is defined by the use
field = datamanager.create_constant_free_size_field(Fieldname::String, Type_of_variable::Type, size::Tuple)
fieldN, fieldNP1 = datamanager.create_free_size_field(Fieldname::String, Type_of_variable::Type, size::Tuple)
```
!!! info "free size example"
A constant node field with a matrix $3\times3$ per node can be defined in a free size field by


!!! info "free size example" A constant node field with a matrix $3\times3$ per node can be defined in a free size field by
```julia
field = datamanager.create_constant_free_size_field("Example", Float64, (number_of_nodes, 3, 3))
```

0 comments on commit 7ac5b17

Please sign in to comment.