Skip to main content
1-Visitor
February 12, 2012
Question

Converting physical component models to Mathcad functions

  • February 12, 2012
  • 2 replies
  • 3168 views

We've been exploring a route to convert physical component models like this...

DCMotorBacklash.png

to Mathcad functions like this...

Screengrab3.png

The process works through code generation of the physical component models, and compilation into Mathcad functions. Users create physical component models with electrical, magnentic, mechanical, mutlibody and hydraulic blocks.

Is this method of producing complex Mathcad models appealing? What kind of use cases can you think of?

Samir

2 replies

19-Tanzanite
February 13, 2012

Samir

Presumably these are Maplesim models you are turning into Mathcad functions. I guess they might be of some use to those who only have Mathcad available. My only reservation is that, in my experience, when one tries to use fairly complicated components (as opposed to elementary components) obtained commercially, off-the-shelf, they never seem to have the exact functionality one wants. There is always some tweaking needed! Presumably your functions would be dll-based, so that the Mathcad users wouldn't be able to produce any required modifications themselves.

Alan

1-Visitor
February 14, 2012

Alan,

Yes, these are MapleSim models (or more generally, any Modelica program) we're turning into Mathcad functions. We've translated models as simple as RLC circuits to models as complex as electromagnetic solenoids and vehicle dynamic simulations from MapleSim to Mathcad.

The code is numerically efficient, and the solvers can handle differential algebraic equations. The functions are implemented as DLLs, so end-users need MapleSim for modifications.

The code generation from MapleSim is point-and-click, but the compilation into DLLs requires copying/pasting into a Visual Studio project and some manual (but well-understood) tweaking.

It's an interesting method of working, and one that's new to Mathcad users. I wanted to establish the potential applications, and the use-cases once your functions are in Mathcad.

  • Parameter sweeps and optimziation?
  • Documentation?
  • Distribution to a larger audience?

Samir

1-Visitor
March 21, 2014

Has anything become of this? I'd love to see this type of functionality.

Jim