keyword stringclasses 7
values | repo_name stringlengths 8 98 | file_path stringlengths 4 244 | file_extension stringclasses 29
values | file_size int64 0 84.1M | line_count int64 0 1.6M | content stringlengths 1 84.1M ⌀ | language stringclasses 14
values |
|---|---|---|---|---|---|---|---|
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-layer-boundary/plot_compar_aniso.py | .py | 1,152 | 50 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_exact_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, ani... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-neutronics-2-group-adapt/plot_compar_multimesh.py | .py | 924 | 44 | # import libraries
import numpy, pylab
from pylab import *
# name of the configuration
name = "hp_iso"
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_"+name+"_multi.dat")
x = data[:, 0]
y = data[:,... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-neutronics-2-group-adapt/plot_compar_hp.py | .py | 1,416 | 56 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_hp_iso_multi.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="hp-FEM (iso)")
da... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-neutronics-2-group-adapt/plot_compar_iso.py | .py | 1,124 | 48 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1_1_iso_multi.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-stabilized-advection-reaction/conv_ex_compar.py | .py | 2,058 | 75 | # import libraries
import numpy, pylab
from pylab import *
# initialize new window
pylab.figure(figsize=(9, 7), dpi=80)
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Relative error")
data = numpy.loadtxt("dgh0/conv_dof_ex_dg-upwind_h0_iso.... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-stabilized-advection-reaction/conv_outfl_compar.py | .py | 2,094 | 75 | # import libraries
import numpy, pylab
from pylab import *
# initialize new window
pylab.figure(figsize=(9, 7), dpi=80)
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Relative error")
data = numpy.loadtxt("dgh0/conv_dof_outfl_dg-upwind_h0_i... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-stabilized-advection-reaction/conv_est_compar.py | .py | 2,070 | 75 | # import libraries
import numpy, pylab
from pylab import *
# initialize new window
pylab.figure(figsize=(9, 7), dpi=80)
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Relative error")
data = numpy.loadtxt("dgh0/conv_dof_est_dg-upwind_h0_iso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-smooth-iso/plot_graph_cpu.py | .py | 558 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_exact_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.load... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-smooth-iso/plot_graph_dof.py | .py | 568 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_exact_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = ... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/nonsym-check/plot_compar_hp.py | .py | 1,138 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/nonsym-check/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/nonsym-check/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-smooth-aniso-x/plot_graph_cpu.py | .py | 917 | 38 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h1-FEM (aniso)")
data = numpy.l... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-smooth-aniso-x/plot_graph_dof.py | .py | 927 | 38 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h1-FEM (aniso)")
data... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-screen/plot_graph_cpu.py | .py | 558 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_exact_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.load... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-general/benchmark-screen/plot_graph_dof.py | .py | 568 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_exact_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = ... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/neutronics/example-iron-water/plot_graph_cpu.py | .py | 540 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.loadtxt("c... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/neutronics/example-iron-water/plot_graph_dof.py | .py | 550 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/neutronics/example-saphir/plot_graph_cpu.py | .py | 540 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.loadtxt("c... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/neutronics/example-saphir/plot_graph_dof.py | .py | 550 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/advection-diffusion-reaction/example-linear-advection-diffusion/plot_compar_dof.py | .py | 562 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = nu... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/linear-elasticity/example-crack/plot_compar_dof.py | .py | 459 | 22 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_hp.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="hp-FEM (multi)")
data = num... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/linear-elasticity/example-crack/plot_graph_cpu.py | .py | 540 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.loadtxt("c... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/linear-elasticity/example-crack/plot_compar_cpu.py | .py | 449 | 22 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_hp.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="hp-FEM (multi)")
data = numpy.loadtxt... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/linear-elasticity/example-crack/plot_graph_dof.py | .py | 550 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/linear-elasticity/example-bracket/plot_compar.py | .py | 825 | 41 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_m.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="error (multi)")
data = numpy... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/linear-elasticity/example-bracket/plot_graph_cpu.py | .py | 540 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.loadtxt("c... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/linear-elasticity/example-bracket/plot_graph_dof.py | .py | 550 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/thermoelasticity/img-hollow-conductor/plot_compar_dof.py | .py | 464 | 22 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1_m.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, multi)")
data... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/thermoelasticity/img-hollow-conductor/plot_graph_cpu.py | .py | 546 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_h1_m.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = numpy.loadtxt(... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/thermoelasticity/img-hollow-conductor/plot_compar_cpu.py | .py | 454 | 22 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_h1_m.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, multi)")
data = numpy.l... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/thermoelasticity/img-hollow-conductor/plot_graph_dof.py | .py | 556 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1_m.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1)")
data = nump... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/miscellaneous/example-singular-perturbation/plot_graph_hp_dof.py | .py | 459 | 22 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="hp-FEM (iso)")
data = n... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/miscellaneous/example-singular-perturbation/plot_graph_compar_dof.py | .py | 582 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h1-FEM (aniso)")
data... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/miscellaneous/example-singular-perturbation/plot_graph_hp_cpu.py | .py | 449 | 22 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="hp-FEM (iso)")
data = numpy.loadt... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/miscellaneous/example-singular-perturbation/plot_graph_compar_cpu.py | .py | 572 | 26 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("CPU time")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_cpu_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h1-FEM (aniso)")
data = numpy.l... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/examples/maxwell/microwave-oven/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-08/plot_compar_hp.py | .py | 1,138 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-08/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-08/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-01/plot_compar_hp.py | .py | 1,138 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-01/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-01/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-12/plot_compar_hp.py | .py | 1,168 | 55 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
#data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
#x = data[:, 0]
#y = data[:, 1]
#semilogy(x, y, "-s", label="hp-FEM (iso)"... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-12/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-12/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-03/plot_compar_hp.py | .py | 1,168 | 55 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
#data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
#x = data[:, 0]
#y = data[:, 1]
#semilogy(x, y, "-s", label="hp-FEM (iso)"... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-03/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-03/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-06/plot_compar_hp.py | .py | 1,138 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-06/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-06/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-05/plot_compar_hp.py | .py | 1,180 | 56 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-05/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-05/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-10/plot_compar_h2.py | .py | 888 | 42 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_exact_h2_iso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=2, iso)"... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-10/plot_compar_h1.py | .py | 888 | 42 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_exact_h1_iso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, iso)"... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-10/plot_compar_hp.py | .py | 1,138 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-10/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-10/plot_compar_iso.py | .py | 1,122 | 50 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_exact_h1_iso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, iso)"... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-10/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-07/plot_compar_hp.py | .py | 896 | 46 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_anisoh.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-07/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-07/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-02/plot_compar_hp.py | .py | 1,138 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-02/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-02/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-04/plot_compar_hp.py | .py | 1,138 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-04/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-04/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-11/plot_compar_hp.py | .py | 1,126 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="hp-FEM (iso)")
dat... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-11/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-11/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-09/plot_compar_hp.py | .py | 1,138 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_hp_iso.dat")
x = data[:, 0]
y = data[:, 1]
semilogy(x, y, "-s", label="hp-FEM (iso)")
d... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-09/plot_compar_5.py | .py | 1,638 | 74 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/src/hermes2d/benchmarks-nist/nist-09/plot_compar_aniso.py | .py | 1,144 | 54 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
axis('equal')
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
data = numpy.loadtxt("conv_dof_est_h1_aniso.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, "-s", label="h-FEM (p=1, aniso... | Python |
2D | hpfem/hermes-examples | doc/exts/youtube.py | .py | 1,356 | 40 | from docutils import nodes
from docutils.parsers.rst import directives
CODE = """\
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/%(yid)s" frameborder="0">
</iframe>
"""
PARAM = """\n <param name="%s" value="%s"></param>"""
def youtube(name, args, option... | Python |
2D | hpfem/hermes-examples | doc/exts/latexcode.py | .py | 2,611 | 88 | # -*- coding: utf-8 -*-
"""
The Pygments reStructuredText directive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This fragment is a Docutils_ 0.5 directive that renders source code
(to HTML only, currently) via Pygments.
To use it, adjust the options below and copy the code into a module
that you i... | Python |
2D | hpfem/hermes-examples | doc/exts/sourcecode.py | .py | 2,548 | 83 | """
The Pygments reStructuredText directive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This fragment is a Docutils_ 0.4 directive that renders source code
(to HTML only, currently) via Pygments.
To use it, adjust the options below and copy the code into a module
that you import on initialization.... | Python |
2D | hpfem/hermes-examples | doc/exts/popup.py | .py | 1,279 | 41 | from docutils import nodes
from docutils.parsers.rst import directives
CODE = """
<p><b><a href="javascript:doNothing()" onClick="popupHandle=popup(%(name)s)"><img src="%(depth)s" width=60 height=60 align=left>Watch the Video</a></b></p>
</br>
"""
PARAM = """\n <param name="%s" value="%s"></param>"""
def popup(... | Python |
2D | hpfem/hermes-examples | doc/exts/math_dollar.py | .py | 1,813 | 54 | import re
def process_dollars(app, docname, source):
r"""
Replace dollar signs with backticks.
More precisely, do a regular expression search. Replace a plain
dollar sign ($) by a backtick (`). Replace an escaped dollar sign
(\$) by a dollar sign ($). Don't change a dollar sign preceded or
... | Python |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/NIST-util.h | .h | 867 | 33 | #include "hermes2d.h"
using namespace Hermes::Hermes2D;
using namespace Hermes::Hermes2D::Views;
using namespace Hermes::Hermes2D::RefinementSelectors;
class MySelector : public H1ProjBasedSelector<double>
{
public:
MySelector(CandList cand_list) : H1ProjBasedSelector<double>(cand_list)
{
}
private:
void eval... | Unknown |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/NIST-util.cpp | .cpp | 4,064 | 131 | #include "NIST-util.h"
const char* thresholds[7] = { "Lowest", "Lower", "Low", "Medium", "High", "Higher", "Highest" };
const double threshold_values[7] = { 0.05, 0.2, 0.4, 0.5, 0.6, 0.8, 0.95 };
extern const char* strategies[6] = {
"noSelectionH",
"noSelectionHP",
"hXORpError",
"hORpDOFs",
"isoHPDOFs",
"a... | C++ |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/10-interior-line-singularity/definitions.h | .h | 1,171 | 60 | #include "hermes2d.h"
#include "../NIST-util.h"
using namespace Hermes;
using namespace Hermes::Hermes2D;
using namespace Hermes::Hermes2D::Views;
class CustomExactFunction
{
public:
CustomExactFunction(double k, double alpha): k(k), alpha(alpha) {};
double fn(double x, double y);
double k;
double alpha;
}... | Unknown |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/10-interior-line-singularity/plot_graph.py | .py | 898 | 42 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
pylab.yscale("log")
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
axis('equal')
data = numpy.loadtxt("conv_dof_exact.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, '-s', label="erro... | Python |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/10-interior-line-singularity/main.cpp | .cpp | 6,903 | 196 | #include "definitions.h"
using namespace RefinementSelectors;
// This is the 10th in the series of NIST benchmarks with known exact solutions.
//
// Reference: W. Mitchell, A Collection of 2D Elliptic Problems for Testing Adaptive Algorithms,
// NIST Report 7668, February 2010.
//
// Compa... | C++ |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/10-interior-line-singularity/definitions.cpp | .cpp | 1,338 | 57 | #include "definitions.h"
double CustomExactFunction::fn(double x, double y)
{
if (x <= 0) return Hermes::cos(k * y);
else return Hermes::cos(k * y) + Hermes::pow(x, alpha);
}
CustomRightHandSide::CustomRightHandSide(double k, double alpha) : Hermes::Hermes2DFunction<double>(), k(k), alpha(alpha)
{
cef = new Cus... | C++ |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/04-exponential-peak/definitions.h | .h | 1,151 | 45 | #include "hermes2d.h"
#include "../NIST-util.h"
using namespace Hermes;
using namespace Hermes::Hermes2D;
using namespace Hermes::Hermes2D::Views;
/* Right-hand side */
class CustomRightHandSide : public Hermes::Hermes2DFunction<double>
{
public:
CustomRightHandSide(double alpha, double x_loc, double y_loc)
... | Unknown |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/04-exponential-peak/plot_graph.py | .py | 898 | 42 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
pylab.yscale("log")
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
axis('equal')
data = numpy.loadtxt("conv_dof_exact.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, '-s', label="erro... | Python |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/04-exponential-peak/main.cpp | .cpp | 7,028 | 195 | #include "definitions.h"
using namespace RefinementSelectors;
// This is the fourth in the series of NIST benchmarks with known exact solutions.
//
// Reference: W. Mitchell, A Collection of 2D Elliptic Problems for Testing Adaptive Algorithms,
// NIST Report 7668, February 2010.
//
// PDE... | C++ |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/04-exponential-peak/definitions.cpp | .cpp | 857 | 31 | #include "definitions.h"
double CustomRightHandSide::value(double x, double y) const
{
double a_P = (-alpha * Hermes::pow((x - x_loc), 2) - alpha * Hermes::pow((y - y_loc), 2));
return (4 * exp(a_P) * alpha * (alpha * (x - x_loc) * (x - x_loc)
+ alpha * (y - y_loc) * (y - y_loc) - 1));
}
Ord CustomRightHandS... | C++ |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/12-multiple-difficulties/definitions.h | .h | 1,777 | 63 | #include "hermes2d.h"
#include "../NIST-util.h"
using namespace Hermes;
using namespace Hermes::Hermes2D;
using namespace Hermes::Hermes2D::Views;
/* Right-hand side */
class CustomRightHandSide : public Hermes::Hermes2DFunction<double>
{
public:
CustomRightHandSide(double alpha_w, double alpha_p, double x_w, doub... | Unknown |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/12-multiple-difficulties/generate_diff_f_y.py | .py | 734 | 33 | from sympy import var, sqrt, sin, pprint, simplify, ccode, atan2, atan, exp, S
var("x y alpha_w alpha_p omega pi x_w y_w x_p y_p epsilon r0")
def diff_f_y(f):
return f.diff(y, 1)
r = sqrt(x**2+y**2)
r_w = sqrt((x-x_w)**2+(y-y_w)**2)
r_p_squared = (x-x_p)**2+(y-y_p)**2
theta = atan(y/x)
u = r**(pi/omega) * sin(the... | Python |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/12-multiple-difficulties/plot_graph.py | .py | 898 | 42 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
pylab.yscale("log")
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
axis('equal')
data = numpy.loadtxt("conv_dof_exact.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, '-s', label="erro... | Python |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/12-multiple-difficulties/generate_diff_f_x.py | .py | 734 | 33 | from sympy import var, sqrt, sin, pprint, simplify, ccode, atan2, atan, exp, S
var("x y alpha_w alpha_p omega pi x_w y_w x_p y_p epsilon r0")
def diff_f_x(f):
return f.diff(x, 1)
r = sqrt(x**2+y**2)
r_w = sqrt((x-x_w)**2+(y-y_w)**2)
r_p_squared = (x-x_p)**2+(y-y_p)**2
theta = atan(y/x)
u = r**(pi/omega) * sin(the... | Python |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/12-multiple-difficulties/main.cpp | .cpp | 7,174 | 202 | #include "definitions.h"
using namespace RefinementSelectors;
// This is the twelfth in the series of NIST benchmarks with known exact solutions.
//
// Reference: W. Mitchell, A Collection of 2D Elliptic Problems for Testing Adaptive Algorithms,
// NIST Report 7668, February 2010.
//
// PD... | C++ |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/12-multiple-difficulties/generate_rhs.py | .py | 747 | 32 | from sympy import var, sqrt, sin, pprint, simplify, ccode, atan2, atan, exp, S
var("x y alpha_w alpha_p omega pi x_w y_w x_p y_p epsilon r0")
def laplace(f):
return f.diff(x, 2) + f.diff(y, 2)
r = sqrt(x**2+y**2)
r_w = sqrt((x-x_w)**2+(y-y_w)**2)
r_p_squared = (x-x_p)**2+(y-y_p)**2
theta = atan(y/x)
u = r**(pi/om... | Python |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/12-multiple-difficulties/definitions.cpp | .cpp | 3,009 | 77 | #include "definitions.h"
double CustomRightHandSide::value(double x, double y) const
{
//For more elegant form please execute file "generate_rhs.py"
double a_P = (-alpha_p * Hermes::pow((x - x_p), 2) - alpha_p * Hermes::pow((y - y_p), 2));
double a_W = Hermes::pow(x - x_w, 2);
double b_W = Hermes::pow(y - y_... | C++ |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/05-battery/definitions.h | .h | 4,292 | 146 | #include "hermes2d.h"
#include "../NIST-util.h"
using namespace Hermes;
using namespace Hermes::Hermes2D;
using namespace Hermes::Hermes2D::Views;
using namespace Hermes::Hermes2D::RefinementSelectors;
/* Weak forms */
class CustomMatrixFormVol : public MatrixFormVol<double>
{
public:
CustomMatrixFormVol(int i, in... | Unknown |
2D | hpfem/hermes-examples | 2d-benchmarks-nist/05-battery/plot_graph.py | .py | 628 | 32 | # import libraries
import numpy, pylab
from pylab import *
# plot DOF convergence graph
pylab.title("Error convergence")
pylab.xlabel("Degrees of freedom")
pylab.ylabel("Error [%]")
axis('equal')
data = numpy.loadtxt("conv_dof_est.dat")
x = data[:, 0]
y = data[:, 1]
loglog(x, y, '-s', label="error (est)")
legend()
# ... | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.