Re: [Scilab-users] Reading an xcos diagram with scs_m

2015-11-12 Thread Clément David
Hello,

Do you use any hierarchy ? If the current `scs_m` level is exported it might be 
sufficient in my
view.

Can you open a bug describing your need ? I will try to implement that for 
Scilab 6.0.

Regards,

--
Clément

Le jeudi 12 novembre 2015 à 06:45 -0700, Nazreen a écrit :
> Dear Sir,
> In my Xcos diagram file, I am not using any simulation
> functions. Basically I just want to retrieve stored data from all the blocks
> (using the scs_m and scs_m.objs). The "Solver" is setup on a block. I coded
> the block in such a way that when one clicks on the block, it executes a
> file (which runs some instructions and functions). So i would like the
> block, on clicking it, to be able to tell which file is in use (if many
> files are opened in xcos) so it can retrieve the data from that specified
> xcos file and then carry out the calculations.
>  
> My files are shown above. As you can see, the same Solver block ("Solve
> Power Flow") is in both files. I would like the function of the block to
> importXcosDiagraam("desired xcos file"). So i would like to retrieve the
> scs_m of one file when many are opened.
> Regards,
> Nazreen.
> 
> 
> 
> --
> View this message in context: 
> http://mailinglists.scilab.org/Scilab-users-Reading-an-xcos-diagram-
> with-scs-m-tp4032802p4033084.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
> Nabble.com.
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Reading an xcos diagram with scs_m

2015-11-12 Thread Nazreen
Dear Sir,
In my Xcos diagram file, I am not using any simulation
functions. Basically I just want to retrieve stored data from all the blocks
(using the scs_m and scs_m.objs). The "Solver" is setup on a block. I coded
the block in such a way that when one clicks on the block, it executes a
file (which runs some instructions and functions). So i would like the
block, on clicking it, to be able to tell which file is in use (if many
files are opened in xcos) so it can retrieve the data from that specified
xcos file and then carry out the calculations.
 
My files are shown above. As you can see, the same Solver block ("Solve
Power Flow") is in both files. I would like the function of the block to
importXcosDiagraam("desired xcos file"). So i would like to retrieve the
scs_m of one file when many are opened.
Regards,
Nazreen.



--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-Reading-an-xcos-diagram-with-scs-m-tp4032802p4033084.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Reading an xcos diagram with scs_m

2015-11-12 Thread Clément David
Hello,

On Scilab 5 there is no way to retrieve the current diagram while opening a 
block. To cover your
needs I suggest you to take a look at the simulation hook. This is some 
functions called before and
after the simulation.

In Scilab 6, it is possible to get the parent diagram but we currently provide 
no documented way to
achieve that. Can you clarify your needs ? Do you setup the solver on a block ? 
What kind of
information do you need ?

--
Clément

Le mercredi 11 novembre 2015 à 19:41 -0700, Nazreen a écrit :
> Dear Mr. Clément David,
> 
> I am developing a toolbox with new xcos blocks which can create many
> different diagrams. For instance, I have many xcos diagram files saved and
> have a few open on scilab xcos. For example, I have an Xcos block called
> "Solver" in each file but I would like to perform calculations on one file
> by clicking the block in that file. How can Scilab/Xcos tell which file I
> want to say use the function ImportXcosDiagram? In other words, get the
> scs_m from the diagram file where the xcos block was clicked when many files
> are open without having to state the file directory?
> 
> Regards,
> Nazreen.
> 
> 
> 
> --
> View this message in context: 
> http://mailinglists.scilab.org/Scilab-users-Reading-an-xcos-diagram-
> with-scs-m-tp4032802p4033080.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
> Nabble.com.
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Help with bvodeS & bvode and unusual boundary conditions

2015-11-12 Thread Serge Steer
in zeta you will give the locations (relative to y) of your boundary
conditions
in your case something like [0 0 0 , L  L L ]
if you have 6 states 3 with initial constraints and 3 with final contraints
The constraints  should then be defined by the gsub  and dgsub functions

Serge
Le 12/11/2015 11:09, amonm...@laas.fr a écrit :
> Hi everyone,
>
> I'm trying to understand how bvodeS works and whether I can use it to
> solve numerically my problem.
> A bit of context:
> I have a 1D coupled-mode problem, where I model the propagation along
> one direction (let's call it y) of two modes (one in +y-direction and
> one in the -y-direction).
> Schematically, it looks like this:
>
> a(0) -->| ODE |-->a(L)
> b(0) <--| ODE |<--b(L)
>
> The ODE is of the first order (only a(y), b(y) and a'(y) and b'(y) in
> the ODE, together with non-constant factors).
>
> The thing is that I have scattering-like boundary conditions.
> I know the inputs [a(0)=a0;b(L)=bL] and look for the outputs [a(L)=?;
> b(0)=?].
> I am of course also interested in  the values of [a(y), b(y)] for all
> y in [0,L], but the puzzling issue are my boundary conditions.
> I basically half of my conditions on one side, the other half on the
> other side.
> Can I solve such a system using bvodeS?
> If I can, how am I supposed to build "zeta" to reflect that my
> conditions only concerns a(0) and b(L)?
> Is this doable to get zeta "with holes"?
>
> Thank you in advance for your help,
>
> Antoine
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Help with bvodeS & bvode and unusual boundary conditions

2015-11-12 Thread amonmayr

Hi everyone,

I'm trying to understand how bvodeS works and whether I can use it to 
solve numerically my problem.

A bit of context:
I have a 1D coupled-mode problem, where I model the propagation along 
one direction (let's call it y) of two modes (one in +y-direction and 
one in the -y-direction).

Schematically, it looks like this:

a(0) -->| ODE |-->a(L)
b(0) <--| ODE |<--b(L)

The ODE is of the first order (only a(y), b(y) and a'(y) and b'(y) in 
the ODE, together with non-constant factors).


The thing is that I have scattering-like boundary conditions.
I know the inputs [a(0)=a0;b(L)=bL] and look for the outputs [a(L)=?; 
b(0)=?].
I am of course also interested in  the values of [a(y), b(y)] for all y 
in [0,L], but the puzzling issue are my boundary conditions.
I basically half of my conditions on one side, the other half on the 
other side.

Can I solve such a system using bvodeS?
If I can, how am I supposed to build "zeta" to reflect that my 
conditions only concerns a(0) and b(L)?

Is this doable to get zeta "with holes"?

Thank you in advance for your help,

Antoine
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users