MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / read

Function read

src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C:57–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57void Foam::fvSchemes::read(const dictionary& dict)
58{
59 if (dict.found("ddtSchemes"))
60 {
61 ddtSchemes_ = dict.subDict("ddtSchemes");
62 }
63 else
64 {
65 ddtSchemes_.set("default", "none");
66 }
67
68 if
69 (
70 ddtSchemes_.found("default")
71 && word(ddtSchemes_.lookup("default")) != "none"
72 )
73 {
74 defaultDdtScheme_ = ddtSchemes_.lookup("default");
75 steady_ =
76 (
77 word(defaultDdtScheme_)
78 == fv::steadyStateDdtScheme<scalar>::typeName
79 );
80 }
81
82
83 if (dict.found("d2dt2Schemes"))
84 {
85 d2dt2Schemes_ = dict.subDict("d2dt2Schemes");
86 }
87 else
88 {
89 d2dt2Schemes_.set("default", "none");
90 }
91
92 if
93 (
94 d2dt2Schemes_.found("default")
95 && word(d2dt2Schemes_.lookup("default")) != "none"
96 )
97 {
98 defaultD2dt2Scheme_ = d2dt2Schemes_.lookup("default");
99 }
100
101
102 if (dict.found("interpolationSchemes"))
103 {
104 interpolationSchemes_ = dict.subDict("interpolationSchemes");
105 }
106 else if (!interpolationSchemes_.found("default"))
107 {
108 interpolationSchemes_.add("default", "linear");
109 }
110
111 if
112 (
113 interpolationSchemes_.found("default")
114 && word(interpolationSchemes_.lookup("default")) != "none"

Callers 1

fvSchemes.CFile · 0.70

Calls 7

wordClass · 0.85
lookupMethod · 0.80
clearFunction · 0.70
SwitchClass · 0.50
foundMethod · 0.45
setMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected