Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# RobinBound.RobinBound

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)
```Stores and manages all boundary edges requiring
Robin boundary conditions. If a case degenerates to Neumann or Dirichlet
boundary conditions then those classes should be used.

Data Structure(a dictionary): { (i1,i2): (A,B) }

A and B are defined as follows:

n*F*grad(v) = A - B v
(more...)
```

```from ellipt2d import ellipt2d
from DirichletBound import DirichletBound
from RobinBound import RobinBound
import reg2tri

```
```for i in range(nx1):
db[i] = 0.
rb = RobinBound()
for i in range((ny1-1)*nx1, ny1*nx1-1):
x = grid.x(i)
```

```import time
from math import sqrt
from RobinBound import RobinBound

class demo_RegRb:
```
```            (x0, y0, xmax, ymax), self.nx1, self.ny1)

rB = RobinBound()

for i in range(0,self.nx1-1):
```

```    def assemble(self):

import cellipt2d, RobinBound

rB = RobinBound.RobinBound()
```

```    nb[(nx1*ny1-2,nx1*ny1-1)] = 3.0

rb = RobinBound.RobinBound()
rb[(nx1*ny1-3,nx1*ny1-2)] = [2.0,1.34]

```

```    nb[(nx1*ny1-2,nx1*ny1-1)] = 3.0+0j