GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Jun-2007, 14:35
degoman degoman is offline
New Member
 
Join Date: Jun 2007
Posts: 1
degoman is on a distinguished road

Heat Equation


I need help getting started on a program for the heat equation... namely the equation ut = k*uxx
  #2  
Old 20-Jun-2007, 15:53
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,200
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: Heat Equation


Quote:
Originally Posted by degoman
I need help getting started on a program

I usually start with

CPP / C++ / C Code:
#include <stdio.h>
int main()
{

    return 0;
}

But seriously, in order to write a program, you have to define the problem and decide on a method. Sometimes it is called a Program Specification. See footnote.

What are the inputs? What are the outputs? What method will you use to process the inputs in order to obtain the outputs?

The heat equation is a second order differential equation where you have a function u(t, x) that satisfies the equation that you tried to represent (it's hard without real typesetting symbols, but we know what equation you mean).

The equation by itself is clearly inadequate to use to get a solution (other than the trivial one of zero everywhere and all of the time). Unless we are applying this equation to the Universe at large, there have to be some other "givens". Typically boundary conditions for schoolboy problems like this are given in the form

u(0, x) = f(x) for 0 <= x <= L (the initial distribution of heat over a finite range of x)

u(t, 0) = u(t, L) = 0 (value at the end points)

Joseph Fourier published solutions for several cases early in the 18th century (yes, without a computer other than his "little gray cells", as that other great Frenchman Hercule Poirot would say).

There are a number of numerical methods for solving second order boundary value problems. Which would you like to use?

What is the context of your assignment? Computer Science? Math? Mechanical Engineering? What? What are the prerequisites? Do you have any background in Numerical Analysis?

Or was a method suggested (assigned)?

Regards,

Dave

"Ya gotta have a plan."
---davekw7x
 
 

Recent GIDBlogReview: Gel laptop cooling pad by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPI with C (Solving Linear Equation using Gauss-Seidel Iteration) trainz13 C Programming Language 7 01-May-2007 23:38
How to print an equation in order of precedence of operators shoegoe C Programming Language 7 02-Nov-2006 15:14
paralllel programming using MPI - linear equation using jacobi eclipt C++ Forum 0 04-May-2006 20:02
Cooling faQ asanthadenz Computer Hardware Forum 3 21-Jun-2004 14:07
Microsoft Equation conkermaniac Computer Software Forum - Windows 1 15-Feb-2003 12:03

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:00.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.