View Ibrahim ERTURK's profile on LinkedIn

Scilab/Xcos Toolbox for Power Electronics and Electrical Machines

Previously developed blocks under ScicosLab has been ported to Scilab/Xcos. It can be downloaded from link below. I will be glad to receive your valued feedback.

Usage

  • Run builder.sce in root folder
  • Run loader.sce created by builder macro

 

Available Blocks

  • xcpl_BLDC
    Brushless DC Machine in abc frame
  • xcpl_BLSC
    Brushless DC Machine Sensored Controller
  • xcpl_PMSM
    Permanent Magnet Synchronous Machine in dq frame
  • xcpl_PMSC
    Permanent Magnet Synchronous Machine FOC Controller
  • xcpl_IMPU
    Induction Machine Per-Unit Model in dq frame
  • xcpl_SVPWM
    Space Vector PWM generator
  • xcpl_PSDINV
    Pseudo Inverter (It is not support three-state switching case)

 

Available Demos

  • Field Oriented Controlling Permanent Magnet Synchronous Machine

 

Generating Images to Obtain an Animated Image with FEMM

Animated Over 180 DegreeTo obtain images, It is sufficient to run lua script AnimatedFemmLua.lua under folder lua. Generated images can be found under folder out/images. After images has been generated, they can be merged to obtain animated image with an image manipulation program like GIMP.

Full source of example machine and lua script can be downloaded from links below.

-- StarGate-TR - Copyright 2010
-- http://www.stargate-tr.com
-- ierturk@stargate-tr.com

-- Generating Images to Obtain an Animated Images with FEM

-- To obtain images, It is sufficient to run this lua script.
-- Generated images can be found under folder out/images.

-- firstly, rotor element to be rotated should be defined in femm source
-- this example, group number is selected as 8.

source_file = "../source/bldc_motor.fem" -- source Femm with path
rotor_group = 8 -- rotor element to be rotated
x_rotor = 0 -- x axis center of rotor
y_rotor = 0 -- y axis center of rotor

pole_pair = 4 -- pole pair of machine to be analysed
step_count = 12 -- number of required step

dBeta = 360/(pole_pair/2)/step_count -- step angle
-- It is sufficient to ca

open(source_file) -- open orignal femm source
mi_saveas("../out/temp/temp.fem") -- save temporay

for n = 0, (step_count - 1) do -- do repeat

open("../out/temp/temp.fem") -- open temporary femm source

mi_modifycircprop("A",1,0) -- current in circuit A
mi_modifycircprop("B",1,0) -- current in circuit B
mi_modifycircprop("C",1,0) -- current in circuit C
Beta = n*dBeta;

mi_seteditmode('group') -- select group mode
mi_selectgroup(rotor_group) -- select rotor group to be rotated
mi_moverotate(x_rotor, y_rotor, -Beta) -- rotate selected group

mi_analyse() -- do analyse

mi_loadsolution() -- load analys

mo_showdensityplot(1,0,1.5,0,"bmag") -- show density plot
mo_hidepoints() -- hide points

mo_savebitmap(format("../out/images/beta_%1$d.bmp", Beta*(pole_pair/2))) -- save images

mo_close() -- close analyse

end -- do repeat

remove("../out/temp/temp.fem") -- delete temporary files
remove("../out/temp/temp.ans")

messagebox("!!! Your images are ready in folder out/images !!!")
quit()

Posted in Electronics Featured FEM by admin. 1 Comment

Modelling, Simulation and Controlling of Permanent Magnet Synchronous Machine under Scilab/Xcos

In this study, The model which is previously developed under ScicosLab PMSM d-q model is ported to Scilab/Xcos. Two model is developed to simulation as PMSM Machine and PMSM Controller. While, PMSM model is developed as a C-Block, standart Xcos blocks is used to create PMSM Controler.

Also, previous Xcos models (BLDC Machine and BLDC controler) are available in this study.

In PMSM Machine Model, rotor flux is sinusoidal. Instead of hall sensor, an output is added to model as indicate rotor position. Model is based on Matlab SimPowerSystem Blockset. Detailed information about model can be found at link below.

In PMSM Controller Model, Speed control is done. It based on filed oriented control (FOC), and DC bus voltage is adjusted by PI controller to acheive required speed.

Required simulation files can be downloaded from links below. Also, It includes source files of models.

To run model, it is sufficient execute RunFirst.sce after extract archive in Scilab/Xcos enviroment. Script creates libraries and interfaces and open xcos model.

Model Developed under Below Configuration

  • Scilab 5.3.2 Stable
  • Windows Vista 32Bit
  • Microsoft Visual C++ 2010 Express

Model Archive Detail

I hope it is useful.

Modelling, Simulation and Controlling of Brushless DC Machine under Scilab/Xcos

In this study, The model which is previously developed under Java environment is ported to Scilab/Xcos. Two model is developed to simulation as BLDC Machine and BLDC Controller. All parameters can be changed via an interface.

In BLDC Machine Model, rotor flux rotor is trapezoidal. Instead of hall sensor, a output is added to model as indicate step. Model is based on Matlab SimPowerSystem Blockset. Detailed information about model can be found at link below.

In BLDC Controller Model, Speed control is done. It based on 6-step control, and DC bus voltage is adjusted by PI controller to acheive required speed.

Required simulation files can be downloaded from links below. Also, It includes source files of models.

To run model, it is sufficient execute RunFirst.sce after extract archive in Scilab/Xcos enviroment. Script creates libraries and interfaces and open xcos model.

Model Developed under Below Configuration

  • Scilab 5.3.2 Stable
  • Windows Vista 32Bit
  • Microsoft Visual C++ 2010 Express

Model Archive Detail

I hope it is useful.

Modeling and Simulation of Brushless DC Machine Under Java Environment

In case of sinusoidal flux distribution, it is easier to modeling brushless dc machine (BLDC). Modeling of BLDC can be more complex in trapezoidal flux case, because of unbalanced flux linkage per phase. In this case, six step control is required.

Implemented machine model is based on PMSM model in Matlab/Simulink SimPowerSystem. For more information about this model please refer to links below.

Model is developed under below configuration

  • NetBeans 7.0
  • jDisco1.1 (Keld Helsgaun)
  • Java Development Kit (jdk1.6.0_24)

Compiled and source of model can be downloaded links below.

I hope it is useful.

 

Posted in Electronics Featured Java by admin. No Comments

A Tutorial on jDisco – Ideal Parallel LC Circuit

jDisco is a Java framework for combined discrete and continuous simulation. This tutorial demonstrates its capability.

In ideal LC circuit, capacitor and inductor is lossless energy storage element so that they can transfer energy without loss to each other or enywhere you want.

jDisco report, more of tutorial and full source code can be downloaded from links below.

Posted in Electronics Featured Java by admin. No Comments

Induction Machine Per-Unit Model Simulation under Java-jDisco


While I search a continuous simulation environment under Java, I came across with jDisco, and I have tried with my inductoin machine pu model which I have already simulated under other environment such as Matlab/Simulink, Scilab, ScicosLab.

When I was run my first model with jDisco, I was quite suprised from results and speed of it. I strongly advise you try it. Thanks to Keld Helsgaun.

You can find compiled and source code of model at links below.

Posted in Electronics Featured Java by admin. No Comments

JFemm – Java Femm Magnetic Processor Implementation


JFemm is not a stand alone application. It is link between Java and FEMM. At the moment, magnetic LUA processors are implemented.

It can be use simply as import JFemm Library to your Java application or else. Moreover, It is depended on Java Native Access Library.

Related library and Java Documents are available at below links. Demo application also use JMathTools – JMathPlot
for visualization results from Femm analyze.

I hope it is useful.

Posted in Electronics Featured FEM Java by admin. 3 Comments

A Java Femm Link – BLDC Motor Cogging Torque Calculator Using Femm

Application is developed for demonstrate connection between Java and Femm. Link is done with JNA (Java Native Access). You must have Femm installation for run Java Application.

Femm and Java Application can be downloaded from links below. Full set of commands will be implemented at future version as Java Class. Thanks to Femm and JNA developers.

I hope it is useful. Please do not hesitate contact us. Your valuable feedback will be useful to improving our application.

Posted in Electronics Featured FEM Java by admin. No Comments

A Java Applet – Induction Machine Per Phase Equivalent Circuit Parameter Calculator


Posted in Electronics Featured Java by admin. No Comments