Changes
Page history
Update Boundary Conditions
authored
Jan 30, 2019
by
Alain O' Miniussi
Show whitespace changes
Inline
Side-by-side
Developer's-corner/Boundary-Conditions.md
View page @
927b01c6
...
...
@@ -2,6 +2,7 @@
*
[
Adding new boundaries conditions
](
#adding-new-boundaries-conditions
)
*
[
Implementing a stateless boundaries condition
](
#implementing-a-stateless-boundaries-condition
)
*
[
Declaring a stateless boundaries condition
](
declaring-a-stateless-boundaries-condition
)
*
[
Passing parameters
](
Passing
parameters)
*
[
Tips
](
#tips
)
## Choosing the boundaries conditions
...
...
@@ -91,8 +92,8 @@ They will be made available to the code through a [std::map](http://www.cplusplu
PetChopBC(GasDisk& gas, real dt) {
using namespace std;
map<string, string> const& params = gas.physic().boundaries.params;
real voltage = boost::lexical_cast<real>(attrs["voltage"];
bool alive = boost::lexical_cast<real>(
attrs["
voltag
e"];
real voltage = boost::lexical_cast<real>(attrs["voltage"]
)
;
string type =
attrs["
typ
e"];
...
}
```
...
...
...
...