﻿1
00:00:04,339 --> 00:00:08,099
an important part of setting up the CFD

2
00:00:08,099 --> 00:00:10,259
simulation is configuring the settings

3
00:00:10,259 --> 00:00:12,929
for numerical schemes which are made in

4
00:00:12,929 --> 00:00:15,539
the FV schemes file the file is located

5
00:00:15,539 --> 00:00:17,670
in the system directory which I can list

6
00:00:17,670 --> 00:00:19,230
here for the case i'm currently running

7
00:00:19,230 --> 00:00:22,379
i can look inside the file by opening in

8
00:00:22,379 --> 00:00:25,230
an editor or by scrolling through it in

9
00:00:25,230 --> 00:00:27,028
the terminal with the less command as

10
00:00:27,028 --> 00:00:30,089
you can see here i hit the space bar to

11
00:00:30,089 --> 00:00:33,570
scroll like so and if I need to I use Q

12
00:00:33,570 --> 00:00:35,939
to quit I can see the settings for

13
00:00:35,939 --> 00:00:38,909
specific terms and equations for example

14
00:00:38,909 --> 00:00:41,070
diff Phi K gives me the disc realization

15
00:00:41,070 --> 00:00:42,869
of advection of turbulent kinetic energy

16
00:00:42,869 --> 00:00:45,179
in this case the scheme is limited

17
00:00:45,179 --> 00:00:48,000
linear the question users often asked is

18
00:00:48,000 --> 00:00:50,520
what other choices of schemes are there

19
00:00:50,520 --> 00:00:53,009
one way to get an idea of recommended

20
00:00:53,009 --> 00:00:55,079
schemes is to look through the tutorials

21
00:00:55,079 --> 00:00:57,450
examples and look in the settings for

22
00:00:57,450 --> 00:01:00,060
all cases by hand this would be

23
00:01:00,060 --> 00:01:02,280
time-consuming but to speed things up we

24
00:01:02,280 --> 00:01:05,188
can use foam search get help with foam

25
00:01:05,188 --> 00:01:10,680
search by the minus H option you can see

26
00:01:10,680 --> 00:01:13,650
that you need to provide the name of the

27
00:01:13,650 --> 00:01:16,310
file you want to search in the directory

28
00:01:16,310 --> 00:01:18,900
in which to search for files of that

29
00:01:18,900 --> 00:01:21,120
name and the keyword you're interested

30
00:01:21,120 --> 00:01:23,250
in so if we want to search through all

31
00:01:23,250 --> 00:01:25,469
the tutorials we give it the tutorials

32
00:01:25,469 --> 00:01:28,620
directory we can use the foam tutorials

33
00:01:28,620 --> 00:01:32,219
environment very variable for that then

34
00:01:32,219 --> 00:01:33,659
we have the keyword which must include

35
00:01:33,659 --> 00:01:35,489
the names of sub dictionaries that the

36
00:01:35,489 --> 00:01:37,920
keyword is inside here we want to search

37
00:01:37,920 --> 00:01:40,799
for diff I k in div schemes so we need

38
00:01:40,799 --> 00:01:45,930
do schemes dot do fight k then we add

39
00:01:45,930 --> 00:01:48,719
the file name which is FV schemes and we

40
00:01:48,719 --> 00:01:54,459
hit return

41
00:01:54,459 --> 00:01:57,189
now this lists all the unique choices of

42
00:01:57,189 --> 00:02:00,549
defy k so providing a list of all you

43
00:02:00,549 --> 00:02:03,250
schemes to see which schemes are most

44
00:02:03,250 --> 00:02:05,319
commonly used we can run the command

45
00:02:05,319 --> 00:02:08,788
again but this time with the minus C or

46
00:02:08,788 --> 00:02:15,818
count option and this displays the

47
00:02:15,818 --> 00:02:18,580
number of instances of each scheme hear

48
00:02:18,580 --> 00:02:21,430
it clearly shows that limited linear

49
00:02:21,430 --> 00:02:25,330
with 26 and upwind with 37 are the most

50
00:02:25,330 --> 00:02:28,120
used schemes these then provide the safe

51
00:02:28,120 --> 00:02:30,189
choices of schemes for this term which

52
00:02:30,189 --> 00:02:32,259
the user can try and there are the

53
00:02:32,259 --> 00:02:33,560
convenience


