00454nas a2200133 4500008004100000245004100041210004100082260003100123100002000154700001800174700002500192700002300217856008000240 2008 eng d00aUsing SPARK as a Solver for Modelica0 aUsing SPARK as a Solver for Modelica aBerkeley, CA, USAc07/20081 aWetter, Michael1 aHaves, Philip1 aMoshier, Michael, A.1 aSowell, Edward, F. uhttps://simulationresearch.lbl.gov/publications/using-spark-solver-modelica01363nas a2200145 4500008004100000245004100041210004100082260003100123520089400154100002001048700001801068700002501086700002301111856008301134 2008 eng d00aUsing SPARK as a solver for Modelica0 aUsing SPARK as a solver for Modelica aBerkeley, CA, USAc08/20083 a
Modelica is an object-oriented acausal modeling language that is well positioned to become a de-facto standard for expressing models of complex physical systems. To simulate a model expressed in Modelica, it needs to be translated into executable code. For generating run-time efficient code, such a translation needs to employ algebraic formula manipulations. As the SPARK solver has been shown to be competitive for generating such code but currently cannot be used with the Modelica language, we report in this paper how SPARK's symbolic and numerical algorithms can be implemented in OpenModelica, an open-source implementation of a Modelica modeling and simulation environment. We also report benchmark results that show that for our air flow network simulation benchmark, the SPARK solver is competitive with Dymola, which is believed to provide the best solver for Modelica.
1 aWetter, Michael1 aHaves, Philip1 aMoshier, Michael, A.1 aSowell, Edward, F. uhttp://www.ibpsa.us/simbuild2008/technical_sessions/SB08-DOC-TS03-1-Wetter.pdf01717nas a2200133 4500008004100000245005400041210005300095260002700148520125500175100002301430700002501453700001801478856008701496 2004 eng d00aGraph-theoretic Methods in Simulation Using SPARK0 aGraphtheoretic Methods in Simulation Using SPARK aArlington, VAc04/20043 aThis paper deals with simulation modeling of nonlinear, deterministic, continuous systems. It describes how the Simulation Problem Analysis and Research Kernel (SPARK) uses the mathematical graph both to describe models of such systems, and to solve the embodied differential-algebraic equation systems (DAEs). Problems are described declaratively rather than algorithmically, with atomic objects representing individual equations and macro objects representing larger programming entities (submodels) in a smooth hierarchy. Internally, in a preprocessing step, graphs are used to represent the problem at the level of equations and variables rather than procedural, multi-equation blocks. Benefits obtained include models that are without predefined input and output sets, enhancing modeling flexibility and code reusability, and relieving the modeler from manual algorithm development. Moreover, graph algorithms are used for problem decomposition and reduction, greatly reducing solution time for wide classes of problems. After describing the methodology the paper presents results of benchmark tests that quantify performance advantages relative to conventional methods. In a somewhat contrived nonlinear example we show O performance as opposed1 aSowell, Edward, F.1 aMoshier, Michael, A.1 aHaves, Philip uhttps://simulationresearch.lbl.gov/publications/graph-theoretic-methods-simulation00495nas a2200133 4500008004100000245005400041210005300095260003800148100002300186700002500209700001800234700002000252856008900272 2004 eng d00aGraph-Theoretic Methods in Simulation Using SPARK0 aGraphTheoretic Methods in Simulation Using SPARK aArlington, Virginia, USAc04/20041 aSowell, Edward, F.1 aMoshier, Michael, A.1 aHaves, Philip1 aCurtil, Dimitri uhttps://simulationresearch.lbl.gov/publications/graph-theoretic-methods-simulation-002170nas a2200217 4500008004100000245007200041210006900113260001200182300001200194490000700206520147200213653002801685653002901713653003001742653002001772653002001792653001701812100002301829700001801852856008201870 2001 eng d00aEfficient Solution Strategies for Building Energy System Simulation0 aEfficient Solution Strategies for Building Energy System Simulat c04/2001 a309-3170 v333 aThe efficiencies of methods employed in solution of building simulation models are considered and compared by means of benchmark testing. Direct comparisons between the Simulation Problem Analysis and Research Kernel (SPARK) and the HVACSIM+ programs are presented, as are results for SPARK versus conventional and sparse matrix methods. An indirect comparison between SPARK and the IDA program is carried out by solving one of the benchmark test suite problems using the sparse methods employed in that program. The test suite consisted of two problems chosen to span the range of expected performance advantage. SPARK execution times versus problem size are compared to those obtained with conventional and sparse matrix implementations of these problems. Then, to see if the results of these limiting cases extend to actual problems in building simulation, a detailed control system for a heating, ventilating and air conditioning (HVAC) system is simulated with and without the use of SPARK cut set reduction. Execution times for the reduced and non-reduced SPARK models are compared with those for an HVACSIM+ model of the same system. Results show that the graph-theoretic techniques employed in SPARK offer significant speed advantages over the other methods for significantly reducible problems and that by using sparse methods in combination with graph-theoretic methods even problem portions with little reduction potential can be solved efficiently.
10abuilding energy systems10acomputational efficiency10agraph theory applications10ahvac simulation10ahvacsim+ models10aspark models1 aSowell, Edward, F.1 aHaves, Philip uhttps://simulationresearch.lbl.gov/publications/efficient-solution-strategies02073nas a2200121 4500008004100000245007100041210006900112260002600181520164500207100002301852700001801875856005801893 1999 eng d00aNumerical Performance of a Graph-Theoretic HVAC Simulation Program0 aNumerical Performance of a GraphTheoretic HVAC Simulation Progra aKyoto, Japanc09/19993 aThe Simulation Problem Analysis and Research Kernel (SPARK) uses graph-theoretic techniques to match equations to variables and build computational graphs, yielding solution sequences indicated by needed data flow. Additionally, the problem graph is decomposed into strongly connected components, thus reducing the size of simultaneous equation sets, and small cut sets are determined, thereby reducing the number of iteration variables needed to solve each equation set. The improvement in computational efficiency produced by this graph theoretic preprocessing depends on the nature of the problem. The paper explores the improvement one might expect in practice in three ways. First, two problems chosen to span the range of performance are studied and some of the factors determining the performance are identified and discussed. The problem selected to exhibit a large improvement consists of a set of sparsely coupled non-linear equations. The problem selected to represent the other end of the performance spectrum is a set of equations obtained by discretizing Laplace's equation in two dimensions, e.g. a heat conduction problem. Execution time versus problem size is compared to that obtained with sparse matrix implementations of the same problems. Then, to see if the results of these somewhat contrived limiting cases extend to actual problems in building simulation, a detailed control system model of a six- zone VAV HVAC system is simulated with and without the use of cut set reduction. Execution times are compared between the reduced and non-reduced SPARK models, and with those from an HVACSIM+ model of the same system.1 aSowell, Edward, F.1 aHaves, Philip uhttp://www.ibpsa.org/proceedings/BS1999/BS99_A-05.pdf00515nas a2200121 4500008004100000245012500041210006900166260001900235300001600254100001800270700002300288856008200311 1998 eng d00aThe application of Problem Reduction Techniques Based on Graph Theory to the Simulation of Non-Linear Continuous Systems0 aapplication of Problem Reduction Techniques Based on Graph Theor aManchester, UK app. 203-2071 aHaves, Philip1 aSowell, Edward, F. uhttps://simulationresearch.lbl.gov/publications/application-problem-reduction00478nas a2200109 4500008004100000245010300041210006900144260002700213100001800240700002300258856008700281 1998 eng d00aComponent-Based and Equation-Based Solvers for HVAC Simulation: a Comparison of HVACSIM+ and SPARK0 aComponentBased and EquationBased Solvers for HVAC Simulation a C aLiège, Belgiumc12/981 aHaves, Philip1 aSowell, Edward, F. uhttps://simulationresearch.lbl.gov/publications/component-based-and-equation-based