TableDef

Top  Previous  Next

{  TABLEDEF.PDE  }

{

   This problem illustrates the use of the TABLEDEF function to define several parameters

       from an imported table named TABLEDEF.TBL

 

   Note that the TABLEDEF function has the same syntax as the TRANSFER function.

   The difference is that TABLEDEF uses a rectangular grid of data values, while TRANSFER uses

          an unstructured triangular finite element mesh.

 

}

title 'Table Input Test'

 

select

errlim = 0.0005

 

variables

u

 

definitions

tabledef('tabledef.tbl',alpha,beta)

k = 1/alpha

 

equations

div(k*grad(u)) + alpha = 0

 

boundaries

region 1

   start(0,10)

   value(u) = 0

   line to (0,0) to (10,0) to (10,10) to close

 

monitors

contour(u)

 

plots

grid(x,y)

contour(u)

contour(k)

surface(u)

contour(alpha)

contour(beta)

vector(grad(alpha))

 

end