Samir Khan

1839 Reputation

19 Badges

15 years, 160 days

My role is to help customers better exploit our tools. I’ve worked in selling, supporting and marketing maths and simulation software for all my professional career.

I’m fascinated by the full breadth and range of application of Maple. From financial mathematics and engineering to probability and calculus, I’m always impressed by what our users do with our tools.

However much I strenuously deny it, I’m a geek at heart. My first encounter with Maple was as an undergraduate when I used it to symbolically solve the differential equations that described the heat transfer in a series of stirred tanks. My colleagues brute-forced the problem with a numerical solution in Fortran (but they got the marks because that was the point of the course). I’ve since dramatized the process in a worksheet, and never fail to bore people with the story behind it.

I was born, raised and spent my formative years in England’s second city, Birmingham. I graduated with a degree in Chemical Engineering from The University of Nottingham, and after completing a PhD in Fluid Dynamics at Herriot-Watt University in Edinburgh, I started working for Adept Scientific – Maplesoft’s partner in the UK.

MaplePrimes Activity


These are answers submitted by Samir Khan

Right click on the result, then go to numeric formating. Pick scientific and click ok

Check out the application here for a simple method of filtering noise from a signal

That's a visualization from one of my half-completed worksheets, and has not yet been published.

The mountain is actually Mount St Helens

Samir

Maple 18 ships with a worksheet that demonstrates a ball bouncing on a 2D surface.

Here's a worksheet (developed in Maple 18 - haven't run it in other versions) of a ball bouncing on a 3D surface. It's a work in progress, so caveat emptor.

 

Ball_Bouncing_on_3D_.mw

Samir

The answer is no, not at the moment. MSL look-up tables are not yet supported.

Samir

Here' a simple example of inverse dynamics.

For a complex example of inverse kinematics, examine this application

Inverse_Dynamic.msim

[I converted this from a Reply to an Answer and cleaned up the machine-generated Title.---Carl Love as a Moderator]

 

@tdewolf Here are guides that describes how you can use MapleSim-generated C code in (i) Visual Studio Express 2010 and (ii) VisSim (another simulation tool). They were written for MapleSim 5 ago and may not contain the most recent information, but they should be largely correct.

Compiling_C-Code_fro.pdf

Manual_Implementatio.pdf

[I converted this from a Reply to an Answer and cleaned up the machine-generated Title.--- Carl Love as Moderator]

Probably not what you're looking for, but sounds like this: http://www.maplesoft.com/applications/view.aspx?SID=4901

The Tire Library only models motion on flat surfaces. 

Samir

Check out this post and this application for some modeling tips. On an initial reading, your system appears tractable.

Break down the problem into two parts.  Consider each section (for insulation 1 and insulation 2) separately. For each section you need three PDEs (one each for the temperature profile of the liquid in the pipe, the steel pipe wall, and the insulation).

Consider a section dx, and perform a heat balance for the liquid in the pipe, the tube wall and the insulation.

For the liquid in the pipe you'll have terms for the accumulation of heat, heat supplied by liquid flowing in and heat supplied by liquid flowing out, and heat transfer to the tube wall.

For the steel tube wall, you'll have terms for the accumulation of heat, heat flowing into and out of adjacent tube wall sections (Fourier Law), heat transfered from the tube-side liquid and heat exiting to the insulation.

For the insulation, you'll have terms for the accumulation of heat, heat flowing into and out of adjacent insulation sections (Fourier Law), heat entering from the steel wall, and heat exiting to the cold water

Samir

Examine the non-linear spring-mass-damper model that ships with MapleSim.  It demonstrates how you can vary spring and damping constants during a simulation.

Samir

As far as I understand, variable time delay (in a manner meaningful for dynamic simulation) requires support for delay differential equations. This is scheduled for a future version of MapleSim

Samir

If you simpy want to drive the MapleSim model from the data generated by the hardware equipment, then

  • Save the data from your hardware system into a text file,
  • attached it to your MapleSim model,
  • and then reference the data in an interpolation component (Signal Blocks > Interpolation Tables)

Samir

I've succesfully used the Sockets package to send emails from a Maple worksheet.  You'll need a locally installed SMTP server (I've used QK SMTP Server and Free SMTP Server but other tools are available)

Once you have an SMTP server running and accepting messages from localhost on port 25, execute the following code in a Maple worksheet (changing the references to my email address and message body, of course)

with(Sockets):
sid:=Open("localhost",25 ):
Write(sid,"HELO localhost\n"):
Write(sid,"MAIL FROM:<myemail@maplesoft.com>\n"):
Write(sid,"RCPT TO:<toemail@maplesoft.com>\n"):
Write(sid,"DATA\n"):
Write(sid,"From: ""Samir Khan"" <myemail@maplesoft.com>\nTo: ""Samir Khan"" <toemail@maplesoft.com>\nSubject: Email From Maple\n\nThis is the body of the email. I'm sending an email from Maple!\n\n.\n"):
Write(sid,"QUIT\n"):

This works perfectly when I try this from the Maplesoft office with an email succesfully received (after making the appropriate changes to myemail and toemail), but not with my home ISP. I'm not an expert in these matters so I can't tell you why.

Samir

The behaviour of the Code Edit region is by design.  ?CodeEditRegion explains that when the region is collapsed,

...all but the first line of the procedure will be suppressed. The first line of the procedure displays to the right of the icon. A comment may be included before the procedure to display a descriptive heading instead of the first line of the procedure. To suppress the full procedure, insert a pound character (#) on its own line before the procedure

Samir

1 2 3 4 Page 3 of 4