
Differential Equations Ordinary and Partial Differential Equations Math Forum 
 LinkBack  Thread Tools  Display Modes 
August 6th, 2008, 07:15 AM  #1 
Newbie Joined: Aug 2008 Posts: 3 Thanks: 0  Differential equation and comp simulation
Hello guys So I have a process model where I regulate the temperature on the surface of a light bulb. I logged a response curve from this model, and made a first order plus dead time(FOPDT) model from the response data that fits pretty well with the real thing. The problem is that the first order plus dead time model is a differential equation, and I really want to simulate the process on my computer. How do I go about doing that? Here's a pic from my log with the process response and the mathematical model: Thanks in advance, and I really hope at least one of you understand what I'm asking for 
August 6th, 2008, 08:10 AM  #2 
Member Joined: Jul 2008 From: Minnesota, USA Posts: 52 Thanks: 0  Re: Differential equation and comp simulation
So, you just want a numerical approximation, right? I would just step the independent variable forward by some small increment, maybe .001 or .0001 s, and see what that got me. Do you know any programming language that could do this reasonably fast? Python, C/C++, Java? (Python being the slowest, I think)

August 6th, 2008, 08:57 AM  #3  
Newbie Joined: Aug 2008 Posts: 3 Thanks: 0  Re: Differential equation and comp simulation Quote:
I know Delphi pretty well, but I'm learning C++.  
August 6th, 2008, 11:26 AM  #4  
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: Differential equation and comp simulation Quote:
For smooth functions, taking steps like 0.001 should be fine for most purposes. If your function was more jagged I might have suggested a smaller interval  though you could decrease it if you like.  
August 6th, 2008, 12:13 PM  #5  
Member Joined: Jul 2008 From: Minnesota, USA Posts: 52 Thanks: 0  Re: Differential equation and comp simulation Quote:
Nathan  
August 6th, 2008, 02:31 PM  #6 
Newbie Joined: Aug 2008 Posts: 3 Thanks: 0  Re: Differential equation and comp simulation
Okay, thank you guys for your helpful replies! I'll start programming soon after reading up on numerical and analytic solutions. Again, thank you, I've been looking for a good answer to this for a long time, now I think I'm finally moving forward with this project again 
August 6th, 2008, 06:29 PM  #7  
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: Differential equation and comp simulation Quote:
Quote:
 
August 7th, 2008, 12:33 AM  #8  
Member Joined: Jul 2008 From: Minnesota, USA Posts: 52 Thanks: 0  Re: Differential equation and comp simulation Quote:
Dangit, I knew I was missing something!  

Tags 
comp, differential, equation, simulation 
Search tags for this page 
Click on a term to search for related topics.

Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
48th Annual Olympiad High School Prize Comp.  wuzhe  New Users  3  November 2nd, 2011 12:04 PM 
Registrations now OPEN: 5th International Mental Maths Comp.  pgato  Academic Guidance  0  October 3rd, 2010 10:44 AM 
Simulation in Queuing Models: Using Simulation at Beiteba c  aminay  Math Books  0  December 12th, 2009 05:21 AM 
Math simulation  Alexkungfu  Algebra  0  May 22nd, 2008 09:27 PM 
To all the people who are interested in comp sci, READ THIS  johnny  New Users  2  March 29th, 2008 04:29 PM 