|
Export |
Top Previous Next |
|
{ EXPORT.PDE }
{ *******************************************************************
This sample demonstrates the use of EXPORT selectors in PLOT output.
******************************************************************* }
title "Demonstrate forms of export"
select contourgrid=50
Variables Temp { Identify "Temp" as the system variable }
definitions K = 1 { declare and define the conductivity } source = 4 { declare and define the source } Texact = 1-x**2-y**2 { for convenience, define the exact solution } flux=magnitude(K*grad(Temp))
Initial values Temp = 0 { unimportant in linear steady-state problems }
equations div(K*grad(Temp)) + source = 0 { define the heatflow equation }
boundaries { define the problem domain } Region 1 { ... only one region } start "BDRY" (-1,-1) { specify the starting point } value(Temp)=Texact { specify Dirichlet boundary at exact solution } line to (1,-1) { walk the boundary } to (1,1) to (-1,1) to close { bring boundary back to starting point }
monitors contour(Temp) { show the Temperature during solution }
plots { write these hardcopy files at completion } contour(Temp) cdf(temp,flux) table(temp) tecplot(temp,flux)
end |