Search found 8 matches

by armandocora
September 12th, 2014, 4:26 pm
Forum: Simantics System Dynamics
Topic: Nonlinear Equation Solver
Replies: 13
Views: 155860

Re: Nonlinear Equation Solver

Thanks. Right now I'm solving my equation using the excel solver as my priority is to finish the project. But as soon as I have time I'll try to figure out what's happening with Simantics and report my findings.
by armandocora
September 9th, 2014, 11:41 pm
Forum: Simantics System Dynamics
Topic: Nonlinear Equation Solver
Replies: 13
Views: 155860

Re: Nonlinear Equation Solver

I'm trying to solve the same example and it simulates but it doesn't return the correct answer. I'm using the latest nightly (b682).

Thanks
by armandocora
September 5th, 2014, 8:03 pm
Forum: Simantics System Dynamics
Topic: Nonlinear Equation Solver
Replies: 13
Views: 155860

Re: Nonlinear Equation Solver

Thanks. I was able to run it and solve fun1 from the example in the library. Now I'm trying to solve fun2: function fun2 "y = 3*u - sin(w*u) - 1" extends Modelica.Math.Nonlinear.Interfaces.partialScalarFunction; input Real w "Angular velocity"; algorithm y := 3*u - sin(w*u) - 1; end fun2; By typing ...
by armandocora
September 4th, 2014, 9:37 pm
Forum: Simantics System Dynamics
Topic: Nonlinear Equation Solver
Replies: 13
Views: 155860

Re: Nonlinear Equation Solver

Toumas thanks for the example. Is version b673 supposed to be in trunk archive? If not I'll just wait until it is released.
by armandocora
September 3rd, 2014, 7:43 pm
Forum: Simantics System Dynamics
Topic: Nonlinear Equation Solver
Replies: 13
Views: 155860

Re: Nonlinear Equation Solver

Thanks very much! I'll look for the latest nightly in a few days.
by armandocora
September 3rd, 2014, 12:19 am
Forum: Simantics System Dynamics
Topic: Nonlinear Equation Solver
Replies: 13
Views: 155860

Re: Nonlinear Equation Solver

Thanks I tried copying and pasting this function: function solveOneNonlinearEquation "Solve f(u) = 0 in a very reliable and efficient way (f(u_min) and f(u_max) must have different signs)" extends Modelica.Icons.Function; import Modelica.Utilities.Streams.error; input Modelica.Math.Nonlinear.Interfa...
by armandocora
August 29th, 2014, 5:44 pm
Forum: Simantics System Dynamics
Topic: Nonlinear Equation Solver
Replies: 13
Views: 155860

Re: Nonlinear Equation Solver

I found this library:

https://github.com/modelica/Modelica/bl ... nlinear.mo

Is there a way of using it in Simantics?

Thanks
by armandocora
August 29th, 2014, 4:05 pm
Forum: Simantics System Dynamics
Topic: Nonlinear Equation Solver
Replies: 13
Views: 155860

Nonlinear Equation Solver

Hi guys,

Is there a way of solving a nonlinear equation inside Simantics System Dynamics?

I know its possible to add a C language function to do this but I don't have admin rights on my machine to compile one.

Thanks