 
     
 
http://jolivet.perso.enseeiht.fr/FreeFem-tutorial
      

  
    
    


    
      
   
 
   
 
 
 
 
 
 
    
   https://github.com/FreeFem/FreeFem-sources
     http://gmsh.info
 https://www.paraview.org
 https://www.mpi-forum.org
       https://github.com/hpddm/hpddm
     https://bitbucket.org/petsc/petsc
     https://bitbucket.org/slepc/slepc
   
 
  
 
  
  
   
 
 

 
 
 
u = f 
u = g
D
 Γ
D
n
u = g
N
 Γ
N
x
y
  
  
 
u = f 
u = g
D
 Γ
D
n
u = g
N
 Γ
N
Γ
D
x
y
  
  
 
u = f 
u = g
D
 Γ
D
n
u = g
N
 Γ
N
Γ
D
Γ
N
x
y
  
  
 
 
 u H
(Ω)  
u · v =
f v +
Γ
N
g
N
v, v H
Γ
D
(Ω)
u = g
D
 Γ
D
  u
  v
 
 
 u H
(Ω)  
u · v =
f v +
Γ
N
g
N
v, v H
Γ
D
(Ω)
u = g
D
 Γ
D
  u
  v
   
 
h
 n
h

u   u
h
=
N
h
i=
u
h
(i)φ
i
 
h
u
h
H
(Ω
h
) u
h
 
  {φ
i
}
N
h
i=
   
 
h
 n
h

u   u
h
=
N
h
i=
u
h
(i)φ
i
 
h
u
h
H
(Ω
h
) u
h
 
  {φ
i
}
N
h
i=
   
 
h
 n
h

u   u
h
=
N
h
i=
u
h
(i)φ
i
 
h
u
h
H
(Ω
h
) u
h
 
  {φ
i
}
N
h
i=
 

(i, j) J; N
h
K
, A
ij
=
h
φ
j
· φ
i
=        
 
i J; N
h
K, b
i
=
h
f φ
i
+
Γ
h
N
g
N
φ
i
=     
 

(i, j) J; N
h
K
, A
ij
=
h
φ
j
· φ
i
=        
 
i J; N
h
K, b
i
=
h
f φ
i
+
Γ
h
N
g
N
φ
i
=     
  
G
D
      
 
Ax =
A
G
D
G
D
A
G
D
G
D
I
G
D
G
D
x
G
D
x
G
D
=
b
G
D
g
D
 
Ax =
A
G
D
G
D
I
G
D
G
D
x
G
D
x
G
D
=
b
G
D
A
G
D
G
D
g
D
g
D

Ax =
A
G
D
G
D
A
G
D
G
D
A
G
D
G
D
A
G
D
G
D
+ 

I
G
D
G
D
x
G
D
x
G
D
=
b
G
D


g
D
  
G
D
      
 
Ax =
A
G
D
G
D
A
G
D
G
D
I
G
D
G
D
x
G
D
x
G
D
=
b
G
D
g
D
 
Ax =
A
G
D
G
D
I
G
D
G
D
x
G
D
x
G
D
=
b
G
D
A
G
D
G
D
g
D
g
D

Ax =
A
G
D
G
D
A
G
D
G
D
A
G
D
G
D
A
G
D
G
D
+ 

I
G
D
G
D
x
G
D
x
G
D
=
b
G
D


g
D
  
G
D
      
 
Ax =
A
G
D
G
D
A
G
D
G
D
I
G
D
G
D
x
G
D
x
G
D
=
b
G
D
g
D
 
Ax =
A
G
D
G
D
I
G
D
G
D
x
G
D
x
G
D
=
b
G
D
A
G
D
G
D
g
D
g
D

Ax =
A
G
D
G
D
A
G
D
G
D
A
G
D
G
D
A
G
D
G
D
+ 

I
G
D
G
D
x
G
D
x
G
D
=
b
G
D


g
D

  

   
       
      
      
 
     
   
     


    


      
  
 
   https://www.rescale.com
= 


    


      
  
 
   https://www.rescale.com
= 


    


      
  
 
   https://www.rescale.com
= 

  
     
   
      

   
  
 
  
 
  

 
 










 
-ns
-nw-wg
-v
  
  
  

mesh  mesh3
 
  square
  cube
 
buildmesh
       
 
   
 medit  plot  

fespace
   mesh  
   .ndof
       

fespace
   mesh  
   .ndof
       

varf  on
 
 
 
 
     
qforder    

varf  on
 
 
 
 
     
qforder    

matrix  set
 varf    fespace
 
      set

real[int]   
real[int, int]
real[int][int]
complex[int]
matrix[int] string[int]
     
   
.n  .m
.resize
  

 
 load
load "something" =   
    

func
 
     
   
LinearCG EigenValue

macro
    
     -DmacroName=value
   IFMACRO

 
  

 
 

 
 
 




 


 
 

 
 
 




 
    

     
   
  
  
    

     
   
  
  
    
