Last change
on this file since 19759 was 19759, checked in by Eric.Larour, 9 years ago |
CHG: finished implementing all classes and modules needed to parameterize
test101 in javascript.
|
File size:
830 bytes
|
Line | |
---|
1 | //STEADYSTATE class definition
|
---|
2 | //
|
---|
3 | // Usage:
|
---|
4 | // steadystate=new steadystate();
|
---|
5 |
|
---|
6 | function steadystate (){
|
---|
7 | //methods
|
---|
8 | this.setdefaultparameters = function(){// {{{
|
---|
9 |
|
---|
10 | //maximum of steady state iterations
|
---|
11 | this.maxiter=100;
|
---|
12 |
|
---|
13 | //Relative tolerance for the steadystate convertgence
|
---|
14 | this.reltol=0.01;
|
---|
15 |
|
---|
16 | //default output
|
---|
17 | this.requested_outputs=['default'];
|
---|
18 |
|
---|
19 |
|
---|
20 | }// }}}
|
---|
21 | this.disp= function(){// {{{
|
---|
22 |
|
---|
23 | console.log(sprintf(' steadystate solution parameters:'));
|
---|
24 |
|
---|
25 | fielddisplay(this,'reltol','relative tolerance criterion');
|
---|
26 | fielddisplay(this,'maxiter','maximum number of iterations');
|
---|
27 | fielddisplay(this,'requested_outputs','additional requested outputs');
|
---|
28 |
|
---|
29 | }// }}}
|
---|
30 | //properties
|
---|
31 | // {{{
|
---|
32 |
|
---|
33 | this.reltol = 0;
|
---|
34 | this.maxiter = 0;
|
---|
35 | this.requested_outputs = [];
|
---|
36 |
|
---|
37 | this.setdefaultparameters();
|
---|
38 | //}}}
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.