Update Boundary Conditions authored by Elena Lega's avatar Elena Lega
...@@ -25,7 +25,7 @@ Disk { ...@@ -25,7 +25,7 @@ Disk {
## Adding new boundaries conditions ## Adding new boundaries conditions
Examples of boundaries conditions can be found in the the [src/D3/boundariesConditions.cpp](https://gitlab.oca.eu/DISC/fargOCA/blob/master/src/D3/boundariesConditions.cpp). Examples of boundaries conditions 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 new boundary condition code. 1. Implement the new boundary condition code.
...@@ -46,13 +46,13 @@ One way of implementing such condition is to define a new function: ...@@ -46,13 +46,13 @@ One way of implementing such condition is to define a new function:
} }
``` ```
You can have a look to the already implemented conditions in [src/D3/boundariesConditions.cpp](https://gitlab.oca.eu/DISC/fargOCA/blob/master/src/D3/boundariesConditions.cpp): `ComputeReflectingZ`, `OpenBoundaryR` etc. You can have a look to the already implemented conditions in [src/boundariesConditions.cpp](https://gitlab.oca.eu/DISC/fargOCA/blob/master/src/boundariesConditions.cpp): `ComputeReflectingZ`, `OpenBoundaryR` etc.
### Declaring a stateless boundaries condition ### Declaring a stateless boundaries condition
Let say you want to make your new condition available under the name "someGreatBC": Let say you want to make your new condition available under the name "someGreatBC":
In a carefully chosen source file ([src/D3/boundariesConditions.cpp](https://gitlab.oca.eu/DISC/fargOCA/blob/master/src/D3/boundariesConditions.cpp) for example): In a carefully chosen source file ([src/D3/boundariesConditions.cpp](https://gitlab.oca.eu/DISC/fargOCA/blob/master/src/boundariesConditions.cpp) for example):
``` ```
... ...
... ...
......