Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fortran for modelling purpose

Status
Not open for further replies.

geeteshk

Programmer
Aug 19, 2002
58
IN
can any one hint as to how fortran is used as modelling language
 
Modelling is a very general term and means different things to different people. Do you mean

1) Mathematical modelling
2) Simulation
3) 3D graphical shapes with rotations (use OpenGL for this one)
4) None of the above
 
i mean

1) Mathematical modelling to small extent
2) Simulation to large extent
 
I'm not sure about the mathematical modelling bit. When I was in Uni, I was told that someone came up with a formula which mimiced the behaviour of the object. You just plugged in values and checked how the output responded. Sometimes it involved solving PDEs.

Simulation can be done in all sorts of ways. Depends on what you are simulating. The way I like to do it is by S/W integrated circuits (ICs). Basically all the components are black boxes that have inputs and outputs. You basically write a routine to handle the behaviour of the IC. The linkage of the ICs is supplied in a file. It is better to read this in in case you wish to change the linkage. You basically pass the data in, and as it goes from the output of one IC to the input of another, you call the relevant routine and change the data or behaviour accordingly. So far this technique has worked on all the simulations I've done. I must admit I used C++: not Fortran but there is nothing that says it cannot be done in Fortran.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top