I am trying to run a simulation for the first time in OpenModelica with the Buildings library. I have a Thermal Zone and I am dragging and dropping components to the workspace. I connected an EP Spawn widget to the Zone Surface, then connected the Zone surface to the ThermalZone. I have encountered an error when checking the model
[Buildings.ThermalZones.EnergyPlus_9_6_0.ThermalZone: 81:3-82:48]: Function Medium.enthalpyOfCondensingGas not found in scope ThermalZone.
picture of thermal zone components
I click the link and the code clearly shows me a line where the function does exist.
Picture of Function Code
So, what does this mean in two sentences or less?
I am trying to run a check in OpenModelica using the LBL Buildings library and I encounter an error for the ThermalZone. The code seems fine. I want it to run.
Related
I'm trying the Vulkan tutorial on Wayland. I'm following this turorial: https://vulkan-tutorial.com/Introduction
It is a port of wayland-egl and OpenGL ES 3 to Vulkan. Every steps fine but I have a trouble in final draw frame function.
In recording command buffer, calling vkCmdBeginRenderPass function not returns just blocked.
This is my entire source code.
https://github.com/hardboiled65/WaylandClient-tutorials/blob/947ab7e70740d1be5996350b164ee442fc922370/vulkan/main.c
Sorry but code is too long so I can't submit the question with the code.
Please ignore image loading function and wl_output listener.
What I want to do is just draw triangle to the wayland surface.
I'm searched with this keyword but couldn't found.
Is there something wrong? Why program hangs on vkCmdBeginRenderPass.
add_child: Parameter "p_child" is null
I suspect this is a Godot editor error because the game runs fine.
This one is hard to describe but basically I have a "memory" card game that runs from a grid. You select your difficulty and then press New Game. The first time, there are no errors but if you win or select "New Game" the errors start piling up and they seem to double each time, maxing out at 100 errors each time you press the new game button.
The only thing on the googles seems to be related to C++ (which that p_child name definitely suggests) but I'm not using C++, I'm using GDScript... this is why I'm thinking maybe it's just an editor error and Godot is just getting confused that I didn't add_child in the C++ way.
Any thoughts?
EDIT
the code generating the errors is this:
func dealDeck():
randomize()
deck.shuffle()
var c = 0
while c < deck.size():
Game.get_node('grid').add_child(deck[c])
c += 1
Game is just a reference to the main scene (/root/Memory) and deck is an array created previously that contains all the cards. I'm 99% sure that the problem isn't in the deck creation.
and to be clear, I am clearing the grid when a new game is started but I have my suspicions that something is going wrong with the whole process (even though the game is working)
Since Godot was written in C++, the errors given in the console are from the C++ side of the editor. This does not mean that your GDScript code is not responsible for the error. It seems like you're trying to add a child to an object but the child you are trying to add is null. This may be due to many reasons. You should start by looking at how you add the cards to your scene when a new game starts. Also, if you could show us some of the code we may be able to help you further.
Steps to reproduce the issue
(Using Revit 2021.1.3)
Create materials through Revit API and assign them a thermal asset:
Assign material to a wall layer
See that thermal conductivity is filled but resistance is still 0:
Explored solution
Manual workaround
Manually modify any parameter like commentary
See that this time resistance is now not 0 which means that thermal asset is now taken into account
Things which did not work
Modify commentary through Revit API in a separate transaction
Current work in progress source code
Current work in progress source code can be found in pyRevitMEP repo
I found an example in Revit API documentation. Apparently setting thermal property set through ThermalAssetId property is not the way to go. We need to use SetMaterialAspectByPropertySet method instead.
revit_material = doc.GetElement(Material.Create(doc, layer_name))
thermal_asset = ThermalAsset(layer_name, ThermalMaterialType.Solid)
thermal_asset.ThermalConductivity = UnitUtils.ConvertToInternalUnits(
thermal_conductivity,
DisplayUnitType.DUT_WATTS_PER_METER_KELVIN,
)
thermal_property_set = PropertySetElement.Create(doc, thermal_asset)
material.SetMaterialAspectByPropertySet(MaterialAspect.Thermal, thermal_property_set.Id)
So I am a newbie to OpenModelica. I have a bit of experience using LMS Amesim. I created my first simple model using OM and simulated it from within the OMeditor.
When I switch to the plot window, there are NO output variables to plot. That tells me that the simulation may not have run. However, no error messages popped up. When I checked the model, I found it to be fine (not overconstrained or underconstrained).
What gives? This is OM 1.14 on Linux Ubuntu 16.04.
My Modelica file is a simple 2nd order system with feedback control is available via pastebin here or may be downloaded here via google drive link
The messages that I have from the output window are:
/tmp/OpenModelica_drN/OMEdit/Feedback/Feedback -port=35318 -logFormat=xmltcp -override=startTime=0,stopTime=100,stepSize=0.2,tolerance=1e-6,solver=dassl,outputFormat=csv,variableFilter=.* -r=/tmp/OpenModelica_drN/OMEdit/Feedback/Feedback_res.csv -w -lv=LOG_STATS -inputPath=/tmp/OpenModelica_drN/OMEdit/Feedback -outputPath=/tmp/OpenModelica_drN/OMEdit/Feedback
The initialization finished successfully without homotopy method.
The simulation finished successfully.
This was a bug. Should be fixed now:
https://trac.openmodelica.org/OpenModelica/ticket/5251
I have created a simple component and waveform. All the component is suppose to do is output a line of text, specifically a value of a simple property (in this case a frequency value as double data type). I have the component placed in the waveform diagram. When I try to run the waveform from the domain I get this error:
Failed to create application: testWaveform_203_101836155 'load' failed for component:
'maxFreq' with component id: 'DCE:f5144a97-0978-4178-a718-
136c72d6cbla:testWaveform_203_101836155_1' with implementation id: 'DCE:afa7ddfd-bc2f-
422b-82e3-6876608dab26'; on device id: 'DCE:5fbc2a7a-3f0e-4d38-adb3-e35ecf19b6b8' in
waveform 'testWaveform_203_101836155_1' error occurred near line:1909 infile:
ApplicaitonFactory_impl.cpp;
IDL:CF/ApplicationFactory/CreateApplicationError:1.0
My Python component is extremely simple, all I did was autogenerate the code and add "print self.maxFreq" in the def process(self) function, where maxFreq is the frequency value of 2.45 GHz. What exactly is going wrong and how do I fix it?
Double check to make sure that your user has write permissions to $SDRROOT.
Then try running the Device Manager from a command line with a higher debug level to get more information on the source of the error:
$ nodeBooter -d /<nodePath>/DeviceManager.dcd.xml -debug 5
A few other questions:
Does this error cause either the Device Manager or the Domain Manager to terminate execution?
What devices are included in your current node?