OpenFLUID.setAttributeR Documentation

Sets an attribute value for a given spatial unit

Description

Sets an attribute value for a given spatial unit

Usage

OpenFLUID.setAttribute(ofblob, unitclass, unitid, attrname, attrval)

Arguments

ofblob

the simulation definition blob

unitclass

the unit class

unitid

the unit ID

attrname

the name of the attribute

attrval

the value of the attribute

See Also

OpenFLUID.createAttribute

OpenFLUID.getAttribute

OpenFLUID.removeAttribute

Examples

## Not run: 
OpenFLUID.setAttribute(ofsim,"SU",18,"length",12.3)
OpenFLUID.setAttribute(ofsim,"SU",18,"CODE","ABC")

## End(Not run)