*SetReal()

Sets the value of a real entity.

Syntax

*SetReal(real_name, real_value)

Arguments

real_name
The variable name of an existing real entity.
Data type: varname
real_value
The value of the real entity.
Data type: real

Example

*DefineDataSet(dsdef_vehpar)
 *String(model, "Model")
 *Integer(wheelbase, "Wheelbase")
 *Real(spr_mass_cg_hgt, "Sprung Mass CG Height")
 *Real(frnt_spr_mass, "Front Sprung Mass")
 *Real(rear_spr_mass, "Rear Sprung Mass")
*EndDefine()
*DataSet(ds_vehpar, "Vehicle Arguments", dsdef_vehpar)
*SetString(ds_vehpar.model, "Sport Utility")
*SetInteger(ds_vehpar.wheelbase, 3000) 
*SetReal(ds_vehpar.spr_mass_cg_hgt, 800.0)
*SetReal(ds_vehpar.frnt_spr_mass, 800.0)
*SetReal(ds_vehpar.rear_spr_mass, 600.0)

Context

*BeginMdl()

*DefineAnalysis()

*DefineDataSet()

*DefineSystem()