1 |
jgs |
150 |
/* $Id$ */ |
2 |
|
|
/* |
3 |
|
|
****************************************************************************** |
4 |
|
|
* * |
5 |
|
|
* COPYRIGHT ACcESS 2005 - All Rights Reserved * |
6 |
|
|
* * |
7 |
|
|
* This software is the property of ACcESS. No part of this code * |
8 |
|
|
* may be copied in any form or by any means without the expressed written * |
9 |
|
|
* consent of ACcESS. Copying, use or modification of this software * |
10 |
|
|
* by any unauthorised person is illegal unless that person has a software * |
11 |
|
|
* license agreement with ACcESS. * |
12 |
|
|
* * |
13 |
|
|
****************************************************************************** |
14 |
|
|
*/ |
15 |
jgs |
151 |
|
16 |
jgs |
150 |
#if !defined bruce_BruceFactory_20050901_H |
17 |
|
|
#define bruce_BruceFactory_20050901_H |
18 |
|
|
|
19 |
|
|
#include "escript/Data/AbstractContinuousDomain.h" |
20 |
|
|
#include "bruce/Bruce/Bruce.h" |
21 |
|
|
|
22 |
|
|
namespace bruce { |
23 |
|
|
|
24 |
|
|
/** |
25 |
|
|
\brief |
26 |
|
|
A suite of factory methods for creating various Bruces. |
27 |
|
|
|
28 |
|
|
Description: |
29 |
|
|
A suite of factory methods for creating various Bruces. |
30 |
|
|
*/ |
31 |
|
|
|
32 |
|
|
/** |
33 |
|
|
\brief |
34 |
|
|
Creates a rectangular mesh with n0 x n1 x n2 elements over the brick |
35 |
jgs |
151 |
[l0,0,0] x [0,l1,0] x [0,0,l2]. |
36 |
jgs |
150 |
|
37 |
|
|
\param n0,n1,n2 Input - number of elements in each dimension |
38 |
|
|
\param l0,l1,l2 Input - length of each side of brick |
39 |
|
|
*/ |
40 |
jgs |
151 |
escript::AbstractContinuousDomain* brick(int n0=1, int n1=1, int n2=1, |
41 |
|
|
double l0=1.0, double l1=1.0, double l2=1.0); |
42 |
jgs |
150 |
|
43 |
|
|
/** |
44 |
|
|
\brief |
45 |
|
|
Creates a rectangular mesh with n0 x n1 elements over the rectangle |
46 |
jgs |
151 |
[l0,0] x [0,l1]. |
47 |
jgs |
150 |
|
48 |
|
|
\param n0,n1 Input - number of elements in each dimension |
49 |
|
|
\param l0,l1 Input - length of each side of brick |
50 |
|
|
*/ |
51 |
jgs |
151 |
escript::AbstractContinuousDomain* rectangle(int n0=1, int n1=1, |
52 |
|
|
double l0=1.0, double l1=1.0); |
53 |
jgs |
150 |
|
54 |
|
|
} // end of namespace |
55 |
|
|
|
56 |
|
|
#endif |