Fem-fenics: Difference between revisions

128 bytes added ,  6 September 2013
no edit summary
No edit summary
No edit summary
Line 8: Line 8:
<div style="width: 100%;">
<div style="width: 100%;">
   <div style="float:left; width: 48%">
   <div style="float:left; width: 48%">
{{Code|Define Poisson problem|<syntaxhighlight lang="octave" style="font-size:13px">  
{{Code|Define Poisson problem with fem-fenics|<syntaxhighlight lang="octave" style="font-size:13px">  
pkg load fem-fenics msh
pkg load fem-fenics msh
import_ufl_Problem ('Poisson')
import_ufl_Problem ('Poisson')
Line 63: Line 63:
   </div>
   </div>
   <div style="float:right; width: 48%">
   <div style="float:right; width: 48%">
{{Code|Define Poisson problem|<syntaxhighlight lang="python" style="font-size:13px">  
{{Code|Define Poisson problem with fenics python|<syntaxhighlight lang="python" style="font-size:13px">  
from dolfin import *
from dolfin import *


Line 124: Line 124:
<div style="width: 100%;">
<div style="width: 100%;">
   <div style="float:left; width: 48%">
   <div style="float:left; width: 48%">
{{Code|Define Poisson problem|<syntaxhighlight lang="octave" style="font-size:13px">  
{{Code|Define MixedPoisson problem with fem-fenics|<syntaxhighlight lang="octave" style="font-size:13px">  
pkg load fem-fenics msh
pkg load fem-fenics msh
import_ufl_Problem ('MixedPoisson')
import_ufl_Problem ('MixedPoisson')
Line 192: Line 192:
   </div>
   </div>
   <div style="float:right; width: 48%">
   <div style="float:right; width: 48%">
{{Code|Define Poisson problem|<syntaxhighlight lang="python" style="font-size:13px">  
{{Code|Define MixedPoisson problem with fenics python|<syntaxhighlight lang="python" style="font-size:13px">  
from dolfin import *
from dolfin import *


Line 305: Line 305:
<div style="width: 100%;">
<div style="width: 100%;">
   <div style="float:left; width: 48%">
   <div style="float:left; width: 48%">
{{Code|Define Poisson problem|<syntaxhighlight lang="octave" style="font-size:13px">  
{{Code|Define HyperElasticity problem with fem-fenics|<syntaxhighlight lang="octave" style="font-size:13px">  




Line 313: Line 313:
   </div>
   </div>
   <div style="float:right; width: 48%">
   <div style="float:right; width: 48%">
{{Code|Define Poisson problem|<syntaxhighlight lang="c++" style="font-size:13px">  
{{Code|Define HyperElasticity problem with fenics c++|<syntaxhighlight lang="cpp" style="font-size:13px">  




60

edits