lib-acoustic-rating is a Javascript library which calculates acoustic rating requirements for IFC-data according to SIA 181.
Installation
Use the package manager npm to install lib-acoustic-rating.
npm install @vyzn-tech/lib-acoustic-rating
Usage
importCsvConverterfrom'@vyzn-tech/lib-acoustic-rating/dist/csv-converter'import{AcousticRatingCalculator}from'@vyzn-tech/lib-acoustic-rating/dist/calculator'constitems=newCsvConverter().convertToComponents(csvString)constcalculator=newAcousticRatingCalculator(items,// required => see CSVexternalAcousticRatings// required => see External-Acoustic-Ratings// additionalNoiseSensitivityMap optional => see Noise-Sensitivity-Map// additionalAirborneNoiseExposureMap optional => see Airborne-Noise-Exposure-Map// additionalFootstepNoiseExposureMap optional => see Footstep-Noise-Exposure-Map// additionalSpectrumAdjustmentTypeMap optional => see Spectrum-Adjustment-Type-Map)console.log(calculator.calculate())
Expected Input
CSV
Column
Description
Supported Values
Example
Comment
GUID
An IfcGloballyUniqueId holds an encoded string identifier that is used to uniquely identify an IFC object.
22 character length string "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_$"
01$34_67$9_BsbEFbH$JK_M
GUID(same as original IFC) or UniqueLabel (unique string)
Entity
In an IFC model, project information is represented as a series of IFC entities. Each IFC entity contains a fixed number of IFC attributes as well as any number of additional IFC properties. The IFC schema includes several hundred entities, of which the building element-type entities (such as IfcWall and IfcColumn) represent only 25.
ElementType Could be remapped in an interface to match the request
PredefinedType
only required for IfcSlab: The predefined type based on IFC.
FLOOR BASESLAB ROOF
FLOOR
See Entity
ParentIds
The ID of the parent element (IfcRelation/ IfcRelToGroup)
A value from column “ID” of another row or null (empty cell)
01$34_67$9_BsbEFbH$JK_M
Will be the result of the link service
Name
only required for IfcZone and IfcBuilding: Bezeichnung respektive Name, welcher sich von anderer Nutzungseinheit oder anderen Gebäude unterscheidet
frei (string), beispielsweise Nutzungseinheit_1, Nutzungseinheit_2,... Dach Fluchtweg_1, Bauprojekt, Nachbargebäude
Nutzungseinheit_1
User input - ideally to be inputted on the platform / second option would be IFC input
AcousticRatingLevelReq
only required for IfcZone
Mindestanforderungen, Erhöhte Anforderungen
Mindestanforderungen
User input
Status
only required for IfcZone and IfcBuilding: Status of the element, predominately used in renovation or retrofitting projects. The status can be assigned to as "New" - element designed as new addition, "Existing" - element exists and remains, "Demolish" - element existed but is to be demolished, "Temporary" - element will exists only temporary (like a temporary support structure).
new, existing , temporary
new
ConstructionType Missing option “temporary” should be added
IsExternal
Indication whether the element is designed for use in the exterior (TRUE) or not (FALSE). If (TRUE) it is an external element and faces the outside of the building
TRUE FALSE
TRUE
PositionAgainst Could be remapped in an interface to match the request
OccupancyType
Occupancy type for this object. It is defined according to the presiding national code.