DOLFIN User Manual - FEniCS Project
DOLFIN User Manual - FEniCS Project
DOLFIN User Manual - FEniCS Project
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<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