CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

JAVA and an exersise

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2006, 03:10
Default JAVA and an exersise
  #1
Alej
Guest
 
Posts: n/a
Hello, what do you think about JAVA as a language to implement a finite volumes method (both convection and simple conduction problems)?

And other question, a bit different. For a solid rectangle heigh 0.5, width 2, insulated top and lateral walls, bottom wall at constant temperature 1. Initial temperature 0. Can anyone with some patience confirme me that the exact solution is :

T=1+sum(-4/([2n+1]PI)*exp(-[2n+1]^2*PI^2*t)*sin([2n+1]*PI*z)) from 0 to infinity. Its only about replace on the diffusion equation. Please, I`m getting two codes solutions different each other, and different from this solution. I`ve solved the diffusion equation two times, but still, at this point I need someone to help me a little (one code it comercial, not made by me), Thanks.

  Reply With Quote

Old   July 17, 2006, 10:25
Default Re: JAVA and an exersise
  #2
Mani
Guest
 
Posts: n/a
On the first question: It depends... if you're writing a code to demonstrate the FV method to students, it could be a nice little tool. Java is pretty convenient for making GUIs and it's portable and easy to run from a website, i.e. the perfect teaching and learning tool. If you're a student yourself, and this is for a relatively small homework assigment, Java will be sufficient as well.

However, I hope you don't consider running serious computations with an interpreter language like Java, unless all your CFD problems are very small. If you like the graphical aspects of Java applets, but need to run serious CFD, you may just want to interface Java with a better number crunching language like Fortran or C/C++.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:06.