WEB input code and execution code
User enters definition of PDE through web interface.
User input is converted to compilable code, pdedef.lang
PDE solution is computed, optional plots generated,
user is presented the solution.
This is just the initial PDE of second order
in three dimensions, in "C", Java, Fortran, Ada
Source code for "C" version, one example
pde23_eqn2.c solver source
nuderiv.c utility source
pde23_eqn2_c.out output
pde23_eqn2_c.dat data for plots
plot3d.java source to generate plots
pde23form.html WEB input
pdedef232.c generated source
pdedef232.h generated source
Commands to compile and run above
gcc -o pde23_eqn2 pde23_eqn2.c pdedef232.c nuderiv.c -lm
pde23_eqn2 > pde23_eqn2_c.out # writes pde23_eqn2_c.dat for plot3d
javac -cp . plot3d.java
java -cp . plot3d < pde23_eqn2_c.dat
One screen from java -cp . plot3d < pde23_eqn2_c.dat
Screen from data entry into pde23form.html
Source code for java version, one example
pde23_eqn2.java solver source
nuderiv.java utility source
simeq.java utility source
pde23_eqn2_java.out output
pde23_eqn2_java.dat data for plots
plot3d.java source to generate plots
pde23form.html WEB input
pdedef232.java generated source
Commands to compile and run above
javac -cp . nuderiv.java
javac -cp . simeq.java
javac -cp . pdedef232.java
javac -cp . pde23_eqn2.java
java -cp . pde23_eqn2 > pde23_eqn2_java.out # writes pde23_eqn2_java.dat
javac -cp . plot3d.java
java -cp . plot3d < pde23_eqn2_java.dat
Additional examples
Source code for "C" version, sin(x+y+z) example
pde23_eqn.c solver source
nuderiv.c utility source
pde23_eqn_c.out output
pde23_eqn_c.dat data for plots
plot3d.java source to generate plots
pde23form.html WEB input
pdedef23.c generated source
pdedef23.h generated source
Commands to compile and run above
gcc -o pde23_eqn pde23_eqn.c pdedef23.c nuderiv.c -lm
pde23_eqn > pde23_eqn_c.out # writes pde23_eqn_c.dat for plot3d
javac -cp . plot3d.java
java -cp . plot3d < pde23_eqn_c.dat
One screen from java -cp . plot3d < pde23_eqn_c.dat
Screen from data entry into pde23form.html
For more information on Numerical Computation, follow link below:
CMSC 455 Numerical Computation lectures
last updated 5/18/2015