Stage_Geom

Top  Previous  Next

{  STAGE_GEOM.PDE  }

{

    This problem shows the use of staging to solve  a problem for a range

   of geometries.  T

}

 

title 'Staged Geometry'

 

select

    stages=3

 

Variables

    u

 

equations

    div(grad(u)) + 4 = 0;

 

boundaries

    region 1

       start(0,0)

       value(u)=0        line to (2*stage,0) to (2*stage,2) to (0,2) to close

 

monitors

    contour(u)

 

plots

    surface(u)

    contour(u)

 

histories

    history(integral(u))

 

end