13.07.2015 Views

Part II Implementation - FEniCS Project

Part II Implementation - FEniCS Project

Part II Implementation - 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.

Johan Hoffman, Johan Jansson, Niclas Jansson and Murtazo Nazarov// / Represent and solve time dependent PDE.class TimeDependentPDE{// / Public interfacepublic:TimeDependentPDE(// Computational meshMesh& mesh,// Bilinear form for Jacobian approx.Form& a,// Linear form for time−step residualForm& L,// List of boundary conditionsArray & bcs,// End timereal T);virtual ˜ TimeDependentPDE();// / Solve PDEvirtual uint solve();// / Protected interface for subclassesprotected:// / Compute initial valuevirtual void u0(Vector& u);// / Called before each time stepvirtual void preparestep();// / Called before each fixed−point iterationvirtual void prepareiteration();// / Return the bilinear form aForm& a();// / Return the linear form LForm& L();// / Return the meshMesh& mesh();};Figure 20.4: C++ class interface for TimeDependentPDE.205

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

Saved successfully!

Ooh no, something went wrong!