Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JModelica] Singularities in Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength and Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom #626

Closed
agnesramle opened this issue Jan 19, 2017 · 0 comments · Fixed by #634
Assignees

Comments

@agnesramle
Copy link

agnesramle commented Jan 19, 2017

Since tan(acos(x) = sqrt(1-x^2)/x and 0.7433783508418161 * cos(proShaLenSou.decAng.decAng) * cos(proShaLenSou.solHouAng.solHouAng) + 0.6688711591178841 * sin(proShaLenSou.decAng.decAng) in the assignment below becomes 0 at two time points, you can get an arbitrary big spike in the trajectory for proSheLenSou.shaLen.u:

proShaLenSou.lessThreshold.u := acos(0.7433783508418161 * cos(proShaLenSou.decAng.decAng) * cos(proShaLenSou.solHouAng.solHouAng) + 0.6688711591178841 * sin(proShaLenSou.decAng.decAng))
--- Solved equation ---
proShaLenSou.shaLen.u := tan(proShaLenSou.lessThreshold.u)
(Equations from Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength but similar equations in Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom)

This division by zero leads to verification problems between JModelica and Dymola since very small differences close to these points leads to big differences in the trajectory.

@agnesramle agnesramle changed the title [JModelica] Singularity in Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength [JModelica] Singularities in Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength and Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom Jan 19, 2017
@mwetter mwetter assigned mwetter and tsnouidui and unassigned mwetter Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants