GithubHelp home page GithubHelp logo

Comments (6)

hongyuanjia avatar hongyuanjia commented on September 6, 2024

This is because when you mentioning a class that contains a colon, you have to change the class name to underscore style, i.e. from WindowMaterial:Glazing to WindowMaterial_Glazing, or quote it "WindowMaterial:Glazing"

from epluspar.

mdakyen avatar mdakyen commented on September 6, 2024

Thanks for your response, sir.
I implemented your recommendation, as follows:
mywork<-(WindowMaterial_Glazing = list(Name = "clear glass 4 mm",
Optical_Data_Type = "SpectralAverage",
SpectralAverage =0.0039,
Solar_Transmittance_at_Normal_Incidence =0.812 ,
Front_Side_Solar_Reflectance_at_Normal_Incidence =0.076 ,
Back_Side_Solar_Reflectance_at_Normal_Incidence =0.075,
Visible_Transmittance_at_Normal_Incidence =0.893,
Front_Side_Visible_Reflectance_at_Normal_Incidence =0.084,
Back_Side_Visible_Reflectance_at_Normal_Incidence =0.084,
Infrared_Transmittance_at_Normal_Incidence =0,
Front_Side_Infrared_Hemispherical_Emissivity =0.840,
Back_Side_Infrared_Hemispherical_Emissivity =0.840,
Conductivity = 0.9))
idf$add(mywork)
However, I still encounted the following error:
Error: Assertion on 'Input' failed: Must be named.

from epluspar.

hongyuanjia avatar hongyuanjia commented on September 6, 2024

If you are trying to modify or add objects to an Idf object, please follow the instruction here, i.e. make sure input passed to Idf$add() is a list. For your case, you should do:

mywork<- list(WindowMaterial_Glazing = list(Name = "clear glass 4 mm",
    Optical_Data_Type = "SpectralAverage",
    SpectralAverage =0.0039,
    Solar_Transmittance_at_Normal_Incidence =0.812 ,
    Front_Side_Solar_Reflectance_at_Normal_Incidence =0.076 ,
    Back_Side_Solar_Reflectance_at_Normal_Incidence =0.075,
    Visible_Transmittance_at_Normal_Incidence =0.893,
    Front_Side_Visible_Reflectance_at_Normal_Incidence =0.084,
    Back_Side_Visible_Reflectance_at_Normal_Incidence =0.084,
    Infrared_Transmittance_at_Normal_Incidence =0,
    Front_Side_Infrared_Hemispherical_Emissivity =0.840,
    Back_Side_Infrared_Hemispherical_Emissivity =0.840,
    Conductivity = 0.9))

idf$add(mywork)

from epluspar.

mdakyen avatar mdakyen commented on September 6, 2024

Followed your suggestions again Sir, but am still faced with the following error:
Error: Invalid field name found:
#3| Class 'WindowMaterial:Glazing': 'SpectralAverage'.

from epluspar.

mdakyen avatar mdakyen commented on September 6, 2024

Sorry Sir, noticed my mistake. Below is the correct code and its working now.
mywork<-list(WindowMaterial_Glazing = list(Name = "clear glass 4 mm",
Optical_Data_Type = "SpectralAverage",
Thickness =0.0039,
Solar_Transmittance_at_Normal_Incidence =0.812 ,
Front_Side_Solar_Reflectance_at_Normal_Incidence =0.076 ,
Back_Side_Solar_Reflectance_at_Normal_Incidence =0.075,
Visible_Transmittance_at_Normal_Incidence =0.893,
Front_Side_Visible_Reflectance_at_Normal_Incidence =0.084,
Back_Side_Visible_Reflectance_at_Normal_Incidence =0.084,
Infrared_Transmittance_at_Normal_Incidence =0,
Front_Side_Infrared_Hemispherical_Emissivity =0.840,
Back_Side_Infrared_Hemispherical_Emissivity =0.840,
Conductivity = 0.9))
idf$add(mywork)

Thanks for your swift response, sir.

from epluspar.

hongyuanjia avatar hongyuanjia commented on September 6, 2024

Great. Good to know it works.

from epluspar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.