... | ... | @@ -41,7 +41,7 @@ One way of implementing such condition is to define a new function: |
|
|
using namespace fargOCA; // if necessary
|
|
|
|
|
|
void
|
|
|
SomeGreatBC(GasDisk& gas, real dt) {
|
|
|
SomeGreatBC(Disk& gas, real dt) {
|
|
|
do whatever need to be done to the gas object.
|
|
|
}
|
|
|
```
|
... | ... | @@ -89,7 +89,7 @@ They will be made available to the code through a [std::map](http://www.cplusplu |
|
|
|
|
|
```
|
|
|
void
|
|
|
PetShopBC(GasDisk& gas, real dt) {
|
|
|
PetShopBC(Disk& gas, real dt) {
|
|
|
|
|
|
std::map<std::string, std::string> const& params = gas.physic().boundaries.params;
|
|
|
real voltage = boost::lexical_cast<real>(attrs.at("voltage"));
|
... | ... | |