OpenFLUID.createAttributeR Documentation

Creates an attribute for all spatial units of a class, initialized with a default value

Description

Creates an attribute for all spatial units of a class, initialized with a default value

Usage

OpenFLUID.createAttribute(ofblob, unitclass, attrname, attrval)

Arguments

ofblob

the simulation definition blob

unitclass

the unit class

attrname

the attribute name

attrval

the default attribute value for alla units

See Also

OpenFLUID.getAttribute

OpenFLUID.setAttribute

OpenFLUID.removeAttribute

Examples

## Not run: 
OpenFLUID.createAttribute(ofsim,"SU","area",1.0)
OpenFLUID.createAttribute(ofsim,"SU","code","NONE")

## End(Not run)