... | @@ -2,6 +2,7 @@ |
... | @@ -2,6 +2,7 @@ |
|
* [Adding new boundaries conditions](#adding-new-boundaries-conditions)
|
|
* [Adding new boundaries conditions](#adding-new-boundaries-conditions)
|
|
* [Implementing a stateless boundaries condition](#implementing-a-stateless-boundaries-condition)
|
|
* [Implementing a stateless boundaries condition](#implementing-a-stateless-boundaries-condition)
|
|
* [Declaring a stateless boundaries condition](declaring-a-stateless-boundaries-condition)
|
|
* [Declaring a stateless boundaries condition](declaring-a-stateless-boundaries-condition)
|
|
|
|
* [Passing parameters](Passing parameters)
|
|
* [Tips](#tips)
|
|
* [Tips](#tips)
|
|
|
|
|
|
## Choosing the boundaries conditions
|
|
## Choosing the boundaries conditions
|
... | @@ -91,8 +92,8 @@ They will be made available to the code through a [std::map](http://www.cplusplu |
... | @@ -91,8 +92,8 @@ They will be made available to the code through a [std::map](http://www.cplusplu |
|
PetChopBC(GasDisk& gas, real dt) {
|
|
PetChopBC(GasDisk& gas, real dt) {
|
|
using namespace std;
|
|
using namespace std;
|
|
map<string, string> const& params = gas.physic().boundaries.params;
|
|
map<string, string> const& params = gas.physic().boundaries.params;
|
|
real voltage = boost::lexical_cast<real>(attrs["voltage"];
|
|
real voltage = boost::lexical_cast<real>(attrs["voltage"]);
|
|
bool alive = boost::lexical_cast<real>(attrs["voltage"];
|
|
string type = attrs["type"];
|
|
...
|
|
...
|
|
}
|
|
}
|
|
```
|
|
```
|
... | | ... | |