/[escript]/trunk/doc/examples/cookbook/example01a.py
ViewVC logotype

Diff of /trunk/doc/examples/cookbook/example01a.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3373 by jfenwick, Mon Oct 11 01:48:14 2010 UTC revision 3374 by ahallam, Tue Nov 23 00:30:20 2010 UTC
# Line 42  ndx = 100 # mesh steps in x direction Line 42  ndx = 100 # mesh steps in x direction
42  ndy = 1 # mesh steps in y direction - one dimension means one element  ndy = 1 # mesh steps in y direction - one dimension means one element
43  boundloc = mx/2 # location of boundary between the two blocks  boundloc = mx/2 # location of boundary between the two blocks
44  #PDE related  #PDE related
45  rho = 7874. *kg/m**3 #kg/m^{3} density of iron  rho = 2750. *kg/m**3 #kg/m{3} density of iron
46  cp = 449.*J/(kg*K) # J/Kg.K thermal capacity  cp = 790.*J/(kg*K) # J/Kg.K thermal capacity
47  rhocp = rho*cp  rhocp = rho*cp
48  kappa = 80.*W/m/K   # watts/m.Kthermal conductivity  kappa = 2.2*W/m/K # watts/m.Kthermal conductivity
49  qH=0 * J/(sec*m**3) # J/(sec.m^{3}) no heat source  qH=0 * J/(sec*m**3) # J/(sec.m{3}) no heat source
50  T1=20 * Celsius # initial temperature at Block 1  T1=20 * Celsius # initial temperature at Block 1
51  T2=2273. * Celsius # initial temperature at Block 2  T2=2273. * Celsius # base temperature at Block 2
52    
53    
54  ################################################ESTABLISHING PARAMETERS  ################################################ESTABLISHING PARAMETERS
55  t=0 * day  # our start time, usually zero  t=0 * day  # our start time, usually zero

Legend:
Removed from v.3373  
changed lines
  Added in v.3374

  ViewVC Help
Powered by ViewVC 1.1.26