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

Function reset

src/finiteVolume/cfdTools/general/MRF/MRFZoneList.C:72–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72void Foam::MRFZoneList::reset(const dictionary& dict)
73{
74 label count = 0;
75 forAllConstIter(dictionary, dict, iter)
76 {
77 if (iter().isDict())
78 {
79 count++;
80 }
81 }
82
83 this->setSize(count);
84 label i = 0;
85 forAllConstIter(dictionary, dict, iter)
86 {
87 if (iter().isDict())
88 {
89 const word& name = iter().keyword();
90 const dictionary& modelDict = iter().dict();
91
92 Info<< " creating MRF zone: " << name << endl;
93
94 this->set
95 (
96 i++,
97 new MRFZone(name, mesh_, modelDict)
98 );
99 }
100 }
101}
102
103
104bool Foam::MRFZoneList::read(const dictionary& dict)

Callers 1

MRFZoneList.CFile · 0.70

Calls 5

MRFZoneClass · 0.85
forAllConstIterFunction · 0.50
isDictMethod · 0.45
setSizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected