Year: 2015
Type: book
Abstract: With the current trend towards multi-core processors and computer grids, parallelism in system simulation is becoming inevitable.Performing multiple tasks concurrently can save both time and money.However, this also puts higher demands on simulation software.This thesis investigates how simulation-based product development can benefit from distributed simulation.One parallelization method is to cut apart models for simulation with distributed solvers by using time delays.The transmission line element method (TLM) is used, which eliminates numerical errors by introducing physically motivated time delays.Results show that linear speed-ups can be obtained for large models with balanced workloads.Different task scheduling techniques are tested.It is found that a fork-join algorithm with implicit synchronization performs best for models with a large total workload.On the other hand, a task-pool implementation with lock-based synchronization works better with smaller workloads.The distributed solver method virtually equals co-simulation between different simulation tools.Co-simulation also induces time delays at the interface variables, which makes TLM a useful method.An emerging standard for coupling of simulation tools is the Functional Mock-up Interface (FMI).Experiments show that FMI works well together with TLM, even when connecting different simulation domains such as system simulation and multi-body mechanics.Combining FMI with TLM enables a framework for tool-independent co-simulation with distributed solvers and time steps.When introducing distributed solvers, it can be suitable to maintain the same structure that was used in the modelling process.A popular object-oriented equation-based modelling language is Modelica.Instead of flattening the model for simulation with a centralized solver, TLM makes it possible to use different solvers for different objects in the model.Two approaches are investigated.First, Modelica support is implemented in the Hopsan TLM tool with a code generator.Second, Modelica models are imported to Hopsan through the FMI interface.Both methods are feasible.While the first requires less overhead i 8.1 Real-time Simulation through Library Export . . . . . . . . . .
Author: Robert Braun
Institution: Linköping University
Language: English
Subfield: Modeling and Simulation
Field: Mathematics
Domain: Physical Sciences
Open Access status: diamond
OpenAlex ID: W2176855452
