CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   chtMultiRegionFoam (http://www.cfd-online.com/Forums/openfoam-programming-development/120911-chtmultiregionfoam.html)

nimasam July 17, 2013 06:39

chtMultiRegionFoam
 
whats the meaning of following syntax in chtMultiRegionFoam solvers

Code:

if (finalIter) //?
{
    mesh.data::add("finalIteration", true);
}

and then

Code:

if (finalIter)
{
    mesh.data::remove("finalIteration");
}

i found following description for those function:
add:
//- Add a new entry
// With the merge option, dictionaries are interwoven and
// primitive entries are overwritten
and
remove:
//- Remove an entry specified by keyword

but i can not understand their functionality and their role :)


All times are GMT -4. The time now is 07:54.