forked from Nek5000/NekExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
47 lines (39 loc) · 1.52 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
These cases provide examples of the convecting cone problem illustrated
in Gottlieb & Orszg (1972) and Deville, Fischer, & Mund (2002).
Typically, to run them you would change SIZE such that the product
lx1*E1 = 32, where the total number of elements in the given case
is E=E1*E1. For cone016 we have E=16 and E1=4, etc. Thus, set lx1
as follows:
cone256 lx1=2
cone064 lx1=4
cone016 lx1=8
In this setup, each case (cone016, cone064, cone256) has its own
directory with its SIZE, .usr, and .box file. To run any one of
these examples, cd to the desired case and run genbox, to produce
the .rea file, followed by genmap, to create the .map file). This
assumes that the Nek5000 tools are compiled and the necessary
scripts are copied from the nek5_svn/trunk/tools/scripts/ directory.
For example, to run the cone016 case:
cd cone016
#Create the .rea file
genbox <<EOF
cone016.box
EOF
#Create the .map file
genmap <<
box
.05
EOF
# Move the 'box.' files
mvn box cone016
#Compile the code
makenek cone
#run the code, in the background
nekb cone016
Note, for this problem, which is a pure convection problem, all of
the cost is in evaluation of the convection operator. Thus, it
does not make sense to use the characteristics scheme, which
allows for a larger timestep at the expense of an increased
number of evaluations of the convection operator. (Generally,
the characteristics scheme is useful when the pressure solution
costs are high.) Hence, in this example, we have IFCHAR = F.