ams.core.service.LoadScale#
- class ams.core.service.LoadScale(u: Callable, sd: Callable, name: str = None, tex_name: str = None, unit: str = None, info: str = None, no_parse: bool = False, sparse: bool = False)[source]#
Retrieve zonal load by scaling nodal load using the specified load scale factor. The load scale factor is defined for each "Area".
- Parameters:
- uCallable
nodal load.
- sdCallable
zonal load factor.
- namestr, optional
Instance name.
- tex_namestr, optional
TeX name.
- unitstr, optional
Unit.
- infostr, optional
Description.
- no_parse: bool, optional
True to skip parsing the service.
- sparse: bool, optional
True to return output as scipy csr_matrix.
- __init__(u: Callable, sd: Callable, name: str = None, tex_name: str = None, unit: str = None, info: str = None, no_parse: bool = False, sparse: bool = False)[source]#
Methods
Assign memory for
self.vand set the array to zero.evaluate(*args, **kwargs)Return all the indexes of this item.
get_idx()Return name in a list
parse(*args, **kwargs)update()Update the Parameter value.
Attributes
Return the class name
Return the count of values in
self.v.Return the shape of the service.
Return the size.
Value of the service.