simplorer v7 training - day 1

163
Ansoft Corporation [email protected] www.ansoft.com Simplorer ® V7 Basic Training 1 st Day

Upload: others

Post on 19-Apr-2022

40 views

Category:

Documents


1 download

TRANSCRIPT

SIMPLORER v7 Training - day 12. Circuit Simulation Examples #1, #2
3. Block Diagram Simulation Example #3
4. State Machine Simulation Example #4, 4a, 5, 6, 7
5. Overview of Additional Libraries Automotive, Mechsim, Power, IST-Library
6. Additional Information - AC-Analysis - VHDL-AMS - C-Interface - Matlab-Simulink-Interface
Simplorer_Day 1, pg. 3
Analytical Design
systems consist of a variety of components and
the components have interactions
Simplorer_Day 1, pg. 10
Simplorer_Day 1, pg. 11
Analog ControlDigital Control
home appliances and other systems consist of a
variety of components. Each component may
influence the behavior of another component.
Simplorer_Day 1, pg. 12
one description language (e.g. differential
equations, frequently electric circuits)
Simplorer_Day 1, pg. 13
SET: CS1:=-1 SET: CS2:=-1 SET: CS3:=-1 SET: CS4:=-1
SET: CS1:=-1 SET: CS2:=1 SET: CS3:=-1 SET: CS4:=-1
SET: CS1:=1 SET: CS2:=-1 SET: CS3:=-1 SET: CS4:=-1
SET: CS1:=-1 SET: CS2:=-1 SET: CS3:=-1 SET: CS4:=-1
Electrical/Electronics
(state machine)
1k 1k 50
appropriate modeling language
Each Physical Domain has its Solver and Modeling Language
Separate simulators, but coupled together
Simplorer_Day 1, pg. 15
Mechanics, Power, Semiconductors…
Example: Determine losses for buck converter power supply
Frequency Domain (harmonic analysis or AC simulation)
Example: Design control loop for buck converter
Quiescent Domain (DC operating point analysis or DC
simulation)
semiconductors for an AC analysis
Simplorer_Day 1, pg. 17
Used to define new components for:
1) User’s C-models such as control algorithms or behavior component models
2) Creating call functions for user’s external .dll such as a Matlab simulation
Simplorer_Day 1, pg. 21
Schematic State Machine
Read and WriteSymbol Component Name
R_SHUNT.I current of the component R_SHUNT.dI 1st derivative of of the current R_SHUNT.V voltage of the component R_SHUNT.dV 1st derivative of of the voltage
C_LINK.C value of the component C_LINK.VO initial voltage value
C_LINK.Q charge of a capacitance
L_LOAD.PSI flux linkage of inductor
R_SHUNT.R resistance
Integ.KI Integral Gain
Integ.TS Sampling Time
OFF State name
executed when state is active depending
on type of action (STEP, SET, ...)
Activity situation of a state
Delivers 0, if the state is inactive
Delivers 1, if the state is active
RefVal:=A*sin(2*PI*freq*t)
OFF.ST
F , T , H , PI , TRUE , FALSE , SECM.ITERAT , FSTEP
Simulation
opened project
All settings for the given user are restored, when SIMPLORER
is re-started, if the user does not exist, create a new one
Simplorer_Day 1, pg. 28
selected application
in one project.
Can copy all files of a project into one directory by:
Open the project.
Browse into the new location and assign a project name.
Project will be copied with all of its files into the same directory.
Simplorer_Day 1, pg. 32
upper window...
all of the libraries in the
directory
installation!
Libraries can also be inserted or removed in the schematic
Libraries can be saved in a common location and shared over
a network
removed in the schematic.
area.
Simplorer_Day 1, pg. 34
(library) Results
on sheet
when a warning occurs
Increase to save simulation time
Options for storage of the
simulator state and usage of
saved states
contained in a simulation model.
Can continue the simulation later
from the last state.
the simulation.
values could also be used as an initial
values for a simulation.
Simplorer_Day 1, pg. 36
.KRN
save state option.
components
mega 106 E6 MEG -0.3E6, -0.3meg, -0.3MEG
kilo 103 E3 k KIL 1000, 1e3, 1k, 1kil
milli 10-3 E-3 m MIL 0.0105, 1.05E-2, 10.5M, 10.5MIL
micro 10-6 E-6 u MIC 0.000005, 5e-6, 5u, 5mic
nano 10-9 E-9 n NAN 40E-9, 40n, 40nan
pico 10-12 E-12 p PIC 100E-12, 100P, 100PIC
femto 10-15 E-15 f FEM 9E-15, 9F, 9FEM
Simplorer_Day 1, pg. 38
Formulas and Expressions Formulas consist of operands and operators. Operands can be any numerals
or names. Operators compare or assign a value.
X:=Y+Z; X, Y, and Z are the operands and := and + are the operators.
Simplorer_Day 1, pg. 39
simulation step.
6/28/2005
Basic Rules for Choice of Time Step Proper choice of minimum and maximum integration step size is very
important for correct simulation results.
Simplorer_Day 1, pg. 41
2. Number of Equal Steps
If 0: Maximal acceleration of the simulation.
3. Step Acceleration Damping [%]
If 0: No damping, maximal acceleration of the simulation
For cases of an instable behavior the parameters under 2. and 3.
can be increased.
Library
Components
conduction between nodes
algorithms
controlled passive components and sources
Linear and nonlinear internally controlled sources
Variable time step determination with user defined
upper (hmax) and lower (hmin) limit
Simplorer_Day 1, pg. 45
the pin, where the current is
considered being positive
entering the component.
ground node for each
2. Connect Toolbar
3. Connect Menu
Simplorer_Day 1, pg. 47
Drag the
resistor into
the sheet
Drag the
resistor into
resistor to get the
Output and Display Definition Right mouse click on component and
select Properties, Output/Display
component, define outputs
Right
mouse
click
EQU
FML1
externally controlled
component is determined from the
result of the equation
Simplorer_Day 1, pg. 53
Simplorer_Day 1, pg. 54
two states defined by a short circuit or an
open circuit
three states defined by high resistance
in non conducting area, low resistance
in conducting area and commutation
characteristic
SPICE3F5
compatible
models
SIMPLORER
models
Dual
Dual
Simplorer_Day 1, pg. 60
Right Mouse Click
on an element
opens the object
menu with most
tool bar opens the
object menu to turn
ON or OFF tool
sheet opens the sheet
Select data reduction
• Tool to reduce the size of the output file by reducing
the frequency of saving simulation steps
• Does not impact previously solved projects
Simplorer_Day 1, pg. 62
sheet and select
Outputs / Viewtool to
Select Sheet/
Parameters
• Trapezoidal is fast but may be instable (default)
• Euler (basic with stiffness method) is fast and
stable but dampens
QuickGraph1
of the sliding window
1
0
0.2
0.4
0.6
0.8
add a second y-axis
Simplorer_Day 1, pg. 68
• Click on Draw / Text and place it in the sheet
• Right mouse click
Friday February 22 2002
Simplorer_Day 1, pg. 69
Interface (GPIB)
Graphical and
numerical data
analysis and
Copy & Paste to and from Word, PowerPoint, Excel…
Windows Printing Support
Data Format compatible
The varistor model is defined as a
nonlinear characteristic using a 2D
look up table from within the resistor
component. The data can be obtained
directly from a measurement device via
the SIMPLORER IEEE-interface or
Simplorer_Day 1, pg. 76
Read a data file
On toolbar, select 2D View icon
(or) from library, select Displays/ 2D View
To scale quantities, RMB on plot and select
Best Representation
6/28/2005
How to Display the Characteristic Add one 2D View (con) and two Data from simulation
Note: the ConnectGraph
ConnectGraph and the
associated 2D view
Set R2.V for
Example Problem #2 DC Drive
Period of the input sine wave is 16.666ms -> Hmax = 16.666m/20 Steps =
0.833ms, we use Hmax = 0.5m and Tend = 200ms
= LA/RA = 10mH/1 = 10ms -> Hmin = 10ms/20 Steps = 0.5ms, we use
Hmin = Hmax/100 = 0.005ms
Note: Add
title blocks
blocks
transfer functions
one model
Sampling time is set
locally for blocks (such
sample time
Simplorer_Day 1, pg. 92
Tend = 100
Hmin = 10m
Hmax = 1
A[1] 5
A[2] 6.25
1. Add S-
input pin to SUM2
Simplorer_Day 1, pg. 96
G(s)
NEG
GAIN
I
D
STEP1
PETRI-net theory
Event driven simulation
any SIMPLORER system parameter including
integration parameters and blocks
Especially for discontinuous processes
Simplorer_Day 1, pg. 99
parameter modification
Simplorer_Day 1, pg. 100
activity 1..n
activity 1..n
activity 1..n
activity 1..n
activity 1..n
activity 1..n
INPUT State
Parallel Processes
Cycle (Loop)
Simplorer_Day 1, pg. 102
DC to AC
the initial state
Turn ON / OFF
the activity mark
by clicking this
(updated at each timestep)
Click here to create a new
variable or to create an “if”
statement
new action and select
time step
activation of the state
keyboard is pressed
SET: TSV2:=1
SET: TSV3:=1
SET: TSV4:=0
0 20m2m 4m 6m 8m 10m 12m 14m 16m 18m
Tend = 20m
Hmin = 10u
Hmax = 1m
Drop the SIMPARAM-Box on the Sheet
(In:Basic-Lib->Tools)
Single phase inverter with 2-point hysteresis controller
I_UPR
0
18.00
2.00
4.00
6.00
8.00
10.00
12.00
14.00
16.00
I_UPR
(From SIMPARAM-Box)
In the moment of processing:
STEPSIZE:= HMIN (pink characteristic !)
-325.40m
22.82
2.50
5.00
7.50
10.00
12.50
15.00
17.50
20.00
I_UPR
circuit:
to ITERMAX = 20 !
Matrix! ->No Comparison point !
one simulation step):
reached !
Purpose:
generating this sheet with "Ex #4
Single-Phase Inverter“
nearly practical conditions with
ICA:
Additional States neccessary because of the internal IGBT Capacities =>
Re-Load-Process in the capacitors
Simplorer_Day 1, pg. 116
I_LWR
I_UPR
Switching-Piks of the IGBT-Collector-Current
Process (Model)
evaluate system
quantities and
and frequency of the current
ripple from the previous example
Will monitor the time between 2
consecutive peaks, after a
EQU
SET: LON14:=TRUE
SET: LON23:=TRUE
SET: LON14:=FALSE
Power Factor Correction IC THOMPSON L6561 / Infinion TDA 4862 ONTIME
OFFTIME
30k
C1
COMP
GD
A +
AM_COMP
STEP := VA:=(VA=0)*VM_COMP+VA
STEP := COMP_IN:=(VA-2.5)*VM_MULT*0.65
STEP := UL:=COMP_IN>1.3
STEP := Reduce:=1-AM_COMP/25u
STEP := UL:=(Reduce>1)
STEP := LL:=(Reduce<0)
STEP := COMP_IN:=COMP_IN*Reduction
Change the Simulation
M
Yt
DATAPAIRS1
Set summation
block polarities
0 0.30.1 0.2
Control System Regulates Speed to 1000RPM and Current to 20A ±2.5A
Note:
Relay - Two Poles, Cross-Strap
• Power Management
battery1
fuse1_5Amp
fuse2_15Amp
rlyno1
S1
TS1_HIGH_LOW_Beams_Switch
Low
High
Easy parameterization using Wizard technology
Statistical analyses, optimization and parameter
variations
Web based example database with jump start
projects
Simplorer_Day 1, pg. 138
On
t>0.0025
VM1.V
t
6.10
5.10
5.20
5.30
5.40
5.50
5.60
5.70
5.80
5.90
6.00
+
Output Voltage
Input Voltage
Inductor Current
Load resistance and reference current modification modeled using state machines
Boost Converter
Single Phase Power Supply
Three Phase Power Supply with Impedance
WIRE - Gamma Model
Control Algorithms
Four Quadrant Current Control
Four Quadrant Natural Sampling
B12 Diode Bridge
B12 Thyristor Bridge Cascade
SYMP Synchronous Machine Permanent Excitation w Damper
Electrical Machines
Rigidity
Rigidity
Non-linear rigidity models incl. backlash
Fast computing 1D modeling approach based on
SIMPLORER C-Code interface
electrical and mechanical world
mechanical building blocks
Inertia
Wound
Rotor
Induction
Machine
Q_ref Q_stator"asm_s_r_g21"
- AC-Analysis - VHDL-AMS
- C-Interface - Matlab-Simulink-Interface
D7
TR
TLoad
3
Bridge1
PIC
VHDL-AMS
be used for other
ucnta"SiM2SiM" ucntb"SiM2SiM" ucntc"SiM2SiM"
Input rectifier Pulse converter
Optional Feature !
Thanks for your attention!