350 likes | 2.61k Views
New features in TRNSYS 16 Overview Presentation Outline This presentation (Michaël) TRNSYS package Solver, utility routines (KERNEL) Components (TYPES) Creating distributable applications (TRNSED) More details on: The new DLL architecture (Dave)
E N D
New features in TRNSYS 16 Overview
Presentation Outline • This presentation (Michaël) • TRNSYS package • Solver, utility routines (KERNEL) • Components (TYPES) • Creating distributable applications (TRNSED) • More details on: • The new DLL architecture (Dave) • IISiBat 4 (Werner) • Multizone Building: PREBID / Type 56 (Torsten) • Add-ons • TRNFLOW, SimCad, TRNSYSLite, TESS Libraries
We are listening to you! • User Survey in May 2002 • Results presented at the 2002 Belgian users day • Watch for the “user request” icon!
Enhanced TRNSYS Package • Improved usability, better integration • IISiBat “Simulation studio”, central point • Improved documentation (How To’s) • Project templates • New applications in IISiBat (e.g. interactive data input) • Up-to-date documentation • Latest version always available on the TRNSYS web site • You will still get the printed manuals • Improved error handling • More flexibility in the TRNSYS Kernel • IISiBat will tell you about warnings / errors
TRNSYS 16 Kernel • Improved numerical solver • New solver with numerical relaxation • Improved numerical precision • Double precision variables • Small time steps (1 sec) • Clean coding practices • “Implicit none” • Data modules instead of common blocks • New error message handling • Separate routine • Types send Error number OR string
TRNSYS 16 Kernel (2) • DLL architecture • Add a new component = drop a DLL in a folder • Types written in any language! • Call to external programs • Call to EES • More than one component • Call to Matlab
Standard Component Library • Combined Data Reader/Solar Radiation Processor • Very frequent error cause • Hydrogen Systems Components • HYDROGEMS Library included in standard package • Improvements to HYDROGEMS: • New SOFC model • Improved thermal modeling • Improved control library • PID controller • 5-stage thermostat
Standard Component Library • New HVAC components • Proportional Furnace • Variable Speed Pump • New Absorption Chiller Model • Etc. • Enhancements to existing components • More flexibility for data reading • More robust Storage Tank model (Type 60)
TRNSED • Improved navigation inside the TRNSED file • Multiple windows or HTML-like anchors • Clickable areas in pictures • Improved usability for developers • Menus to insert TRNSED features (e.g. check box) • Recallable default values • Interaction between TRNSED variables • E.g. selecting a line in a pull-down menu will change another displayed variable
DLL Architecture TRNSYS 15 TRNSYS 16
DLL Architecturewhat is the advantage ? • Memory issue: trnlib.dll is getting too big. • Only load the Types that are needed. • Many non-standard libraries. • Transsolar “no-standard types,” TESS Libraries, Hydrogems, User Components. • Allows for easier updates. • Non Fortran Language Types may be used. • Shorter recompilation time.
DLL Architecturehow does it work ? • After reading the deck, TRNSYS calls subroutine LoadLibrary. • LoadLibrary searches the UserLib directory for DLLs and loads any that are found. • LoadLibrary searches each DLL for “exported” subroutines that have “Type” in their name. • LoadLibrary compiles a list of pointers to each exported subroutine. • Instead of calling Types, TRNSYS calls each pointer in the list.
DLL Architecturewhat do I need to do ? • One new line of code must be added to each Type: !DEC$ATTRIBUTES DLLEXPORT :: TYPExxx
DLL Architecturewhat are the disadvantages ? • Setting up a Compaq Visual Fortran workspace is more complicated. • TRNSYS now comes with a ready made workspace. • Debugging in the Developer Studio is more complex. • Be careful of which project is “active” when you recompile. • You can only set breakpoints in the active project.
IISiBat 4Plans for TRNSYS 16 • New, DLL-based software architecture; optimized for Windows XP/ME (but still supporting Windows 95, NT, 2000) • New equipment-oriented features • Better integration of the building model (better connection with PREBID / TYPE 56) • New connection editor • New wizards • New developer in the team: Paul SETTE
IISiBat 4New equipment-oriented features IISiBat 4 IISiBat 3 Information and ‘real’ flow – engineer’s point of view Information flow – computer scientist’s view f(i) f(i) Input-Output logic Network logic
SimSolNew wizards (1) • Integration of tools from the SimSol project(cf. article by Dominique Caccavelli)
SimSolNew wizards (2) • Interactive mask editor for type 68
SimSolNew wizards (3) • New profile editor for type 14
SimSolNew wizards (4) • Others ?
IISiBat 4Divers • Possibility to define UNIT numbers • Automatic assignment of Logical Units • Allow to customize deck style • And … ? ________________________________________________________________________________________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________
cooled ceilingNew Features of TYPE 56 • Integration of a cooled ceiling model in TYPE56 • according to norm for cooled ceiling tests (DIN 4715-1)
cracteristic resistance for the cooled ceiling variable variable from DIN Test cooled ceiling New Features of TYPE 56 • advantages: • integrated in TYP56 • heat exchange with zone is taken into account • heat transfer to the fluid is taken into account • Library of cooled ceilings tested and available on the market
Two band model for windowsNew Features of TYPE 56 • currently one band model for windows
Two band model for windowsNew Features of TYPE 56 • New Two band model for windows
z out in k z d d x cooled ceiling New Features of TYPE 56 • automatic segmentation (internal Loop input /output for TYPE56) • minimum specific mass flow needed for linear approximation of e-function • => several serial segments are needed. Now these segments are connected • automatically (Tout1=Tin2, Tout2=Tin3, mflow1=mflow2=mflow3)
cooled ceiling New Features of TYPE 56 • Demands from the user survey: • Include balance checks for outputs • improve Libraries (for schedules, gains) • rename or delete a type that has been created • ....... • ...... • ......