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 ...
To 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 ...
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 ...
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 ...
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 ...
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
Available Blocks
Available Demos
Scilab/Xcos Toolbox for Power Electronics and Electrical Machines (64.9 KiB, 862 hits)
To 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.
Generating Images to Obtain an Animated Image with FEMM (5.5 KiB, 338 hits)
-- 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()
May 11
18
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
Model Archive Detail
Modelling, Simulation and Controlling of Permanent Magnet Synchronous Machine under Scilab/Xcos (249.3 KiB, 703 hits)
I hope it is useful.
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
Model Archive Detail
Modelling, Simulation and Controlling of Brushless DC Machine under Scilab/Xcos (54.7 KiB, 619 hits)
I hope it is useful.
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
Compiled and source of model can be downloaded links below.
I hope it is useful.
Modeling and Simulation of Brushless DC Machine under Java Environment (263.2 KiB, 550 hits)
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.
A Tutorial on jDisco – Ideal Parallel LC Circuit (137.0 KiB, 315 hits)
Java Source File (A Tutorial on jDisco – Ideal Parallel LC Circuit) (1.5 KiB, 209 hits)
jDisco - a Java framework for combined discrete and continuous simulation (408.4 KiB, 295 hits)

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.
Simulation of Induction Machine under jDisco (JAVA) (70.9 KiB, 275 hits)
jDisco - Continuous Simulation Library under JAVA (462.0 KiB, 262 hits)

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.
JFemm - Java Femm Link V0.0 (96.4 KiB, 266 hits)
JFemm - Java Femm Link V0.0 - Java Documents (40.2 KiB, 248 hits)
JFemm - Java Femm Link V0.0 - Demonstration (1.2 MiB, 315 hits)
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.
A Java Femm Link - BLDC Motor Cogging Torque Calculator Using Femm (816.4 KiB, 426 hits)
FEMM 4.2 Executable (09Nov2010) (3.3 MiB, 588 hits)