12.07.2015 Views

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DOLFIN</strong> <strong>User</strong> <strong>Manual</strong>Hoffman, Jansson, Logg, Wells// Solve convection-diffusion (static version)static void solve(Mesh& mesh, Function& w, Function& f,BoundaryCondition& bc);A simple example of using the solver:int main(){dolfin_output("curses");Mesh mesh("dolfin.xml.gz");Convection w;Source f;MyBC bc;ConvectionDiffusionSolver::solve(mesh, w, f, bc);}return 0;12.2.2 PerformanceThere are no particular performance issues with the solver. GMRES is usedfor solving the linear system.12.2.3 LimitationsCurrently many coefficients (such as diffusivity) are not user-definable, theyneed to be exposed by the interface.81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!