Update Boundary Conditions authored by Alain O' Miniussi's avatar Alain O' Miniussi
## Choosing the boundaries conditions ## Choosing the boundaries conditions
In the configuration file, set the property Disk.Boundaries with a coma separated list of names of the boundaries conditions you want to apply: Each type of boundaries conditions are identified by a name.
To indicate what boundaries conditions you want to apply, just set the property **Disk.Boundaries** with a coma separated list of their names:
``` ```
Disk { Disk {
.... ....
...@@ -9,10 +12,18 @@ Disk { ...@@ -9,10 +12,18 @@ Disk {
} }
``` ```
**FargOCA** will then invoke those boundaries condition at predefined place in the code.
<!-- Might want to develop -->
## Adding new boundaries conditions ## Adding new boundaries conditions
Examples of boundaries condition can be found in the the [src/boundariesConditions.cpp](https://gitlab.oca.eu/DISC/fargOCA/blob/master/src/boundariesConditions.cpp). Examples of boundaries condition can be found in the the [src/boundariesConditions.cpp](https://gitlab.oca.eu/DISC/fargOCA/blob/master/src/boundariesConditions.cpp).
Adding a new boundary condition is a 2 step process, you need to: Adding a new boundary condition is a 2 step process, you need to:
1. Implement the boundary condition code. 1. Implement the new boundary condition code.
2. Tell the system what is the name of that boundary condition. 2. Tell the system what is the name of that new boundary condition.
### Implementing a stateless boundaries condition
Then invoked, a stateless boundary condition does not remember anything from its previous invocation,
\ No newline at end of file