File: clthermique.py

package info (click to toggle)
code-saturne 7.0.2%2Brepack-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 62,868 kB
  • sloc: ansic: 395,271; f90: 100,755; python: 86,746; cpp: 6,227; makefile: 4,247; xml: 2,389; sh: 1,091; javascript: 69
file content (13 lines) | stat: -rwxr-xr-x 320 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3

import math

for i in range(300):
    x = (i+1)*0.1
    print(' %17.9e %17.9e' % (x, x*x*x/1000))

# To use the curve,
# two points must be placed for (a+at)/nu = 1/Pr = 1 
# of which one at x = 0,
# and two points must be placed for (a+at)/nu = 0.42 x / Prt = 0.42 x  
# of which one at x = 30.