Salome HOME
projects
/
modules
/
yacs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git]
/
doc
/
exemples
/
exemple4
/
main.cxx
1
#include "FreeFem.hxx"
\r
2
\r
3
int main()
\r
4
{
\r
5
FreeFem C;
\r
6
\r
7
vector<sBord> B(1);
\r
8
B[0].X = "x=cos(2*pi*t)";
\r
9
B[0].Y = "y=sin(2*pi*t)";
\r
10
B[0].n = 100;
\r
11
\r
12
C.Bords(B);
\r
13
C.Flux("y", "-x");
\r
14
C.Convection("exp(-10*((x-0.3)^2 +(y-0.3)^2))", 0.1, 40);
\r
15
}
\r