For Programmers: Free Programming Magazines  


Home > Archive > Fortran > February 2008 > simulation using fortran









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author simulation using fortran
RAMI Y.

2008-02-18, 5:03 am

hello

i wonder if any of you can help me with this, i'm trying to write a
simulation program by using fortran language (my complier is MS
fortran PS) , and if anyone can tell me is there any textbook or
article or something that i can use for reference, especially the one
with example would be great. or if you have any expirience in doing
so, your comment will be highly appreciated.

thanks so much
Richard Maine

2008-02-18, 5:03 am

RAMI Y. <ramidayu@hotmail.com> wrote:

> i wonder if any of you can help me with this, i'm trying to write a
> simulation program by using fortran language


That isn't enough of a description to be helpful. "Simulation" covers
far too wide a range of things to be very descriptive.

> (my complier is MS fortran PS)


That's probably a mistake. That compiler hasn't been supported for about
a decade and was seriously buggy.

> , and if anyone can tell me is there any textbook or
> article or something that i can use for reference, especially the one
> with example would be great.


All I can suggest from your description would be general Fortran
textbooks. Recommendations on those have been posted here regularly. But
they aren't going to say much useful about "simulation" as a general
category.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
glen herrmannsfeldt

2008-02-18, 5:03 am

Richard Maine wrote:

> RAMI Y. <ramidayu@hotmail.com> wrote:


(snip)
[color=darkred]
> All I can suggest from your description would be general Fortran
> textbooks. Recommendations on those have been posted here regularly. But
> they aren't going to say much useful about "simulation" as a general
> category.


I agree that one should know more about the type of simulation,
but I might recommend "Numerical Recipes" anyway. It is full of
examples with reasonable explanations of how they work.

-- glen

Gerry Ford

2008-02-18, 5:03 am


"glen herrmannsfeldt" <gah@ugcs.caltech.edu> wrote in message
news:0YSdndrA899TrCTanZ2dnUVZ_o_inZ2d@co
mcast.com...
> Richard Maine wrote:
>
>
> (snip)
>
>
> I agree that one should know more about the type of simulation,
> but I might recommend "Numerical Recipes" anyway. It is full of
> examples with reasonable explanations of how they work.

The explanations are good, but there's a proprietary module that you'd need
to purchase if you're really going to do any damage with it. I don't think
this customer is in the market for that.

There's at least two types of sims. Those with a picture and those without.
Fortran excels with the latter. So it is that we can simulate the stress on
a truss. The only "picture" this gives is that if something fails, it comes
down on your head. Fortran only informs other applications as far as the
picture goes.
--
Gerry Ford

"Er hat sich georgiert." Der Spiegel, 2008, sich auf Chimpy Eins komma null
beziehend.


Gary Scott

2008-02-18, 7:22 pm

RAMI Y. wrote:
> hello
>
> i wonder if any of you can help me with this, i'm trying to write a
> simulation program by using fortran language (my complier is MS
> fortran PS) , and if anyone can tell me is there any textbook or
> article or something that i can use for reference, especially the one
> with example would be great. or if you have any expirience in doing
> so, your comment will be highly appreciated.
>
> thanks so much

I'm writing a simulation program too. It involves various serial
digital I/O devices, lots of discrete, analog, and synchro inputs and
outputs, data acquisition/processing, graphing/plotting, and GUIs to tie
it all together, all in Fortran (well I have to call a C API for most of
the I/O drivers, but otherwise its in Fortran). I recommend you at
least use a more recent compiler such as Intel Visual Fortran. I'm
actually still using Compaq Visual Fortran, but I believe it will be a
relatively minor upgrade to IVF when the time comes.

--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

If you want to do the impossible, don't hire an expert because he knows
it can't be done.

-- Henry Ford
none

2008-02-18, 7:22 pm

On Mon, 18 Feb 2008 03:26:24 -0700, Gerry Ford wrote:

>
> "glen herrmannsfeldt" <gah@ugcs.caltech.edu> wrote in message
> news:0YSdndrA899TrCTanZ2dnUVZ_o_inZ2d@co
mcast.com...
> The explanations are good, but there's a proprietary module that you'd need
> to purchase if you're really going to do any damage with it. I don't think
> this customer is in the market for that.
>


Not the Fortran 77 and Fortran 90 versions; for Fortran 90 there is even
a utility module which has been put into the public domain, if memory
serves correctly.

> There's at least two types of sims. Those with a picture and those
> without. Fortran excels with the latter. So it is that we can simulate
> the stress on a truss. The only "picture" this gives is that if
> something fails, it comes down on your head. Fortran only informs other
> applications as far as the picture goes.


As has been said many a time in this group, VB/Delphi ease putting
together a pretty front end; and there are Fortran-based GUIs that are
commercially available - see polhedron.co.uk for examples.

Finally, tour 'simulation framework' needs to define as a minimum if you
are looking at a PDE or ODE system, or perhaps steady-state/algebraic
equations, or something more akin to queing theory - there are plenty of
good books, but 'simulation' by itself is too large a topic to pin down.

Richard Maine

2008-02-18, 7:22 pm

none <none@none.net> wrote:

> Finally, tour 'simulation framework' needs to define as a minimum if you
> are looking at a PDE or ODE system, or perhaps steady-state/algebraic
> equations, or something more akin to queing theory - there are plenty of
> good books, but 'simulation' by itself is too large a topic to pin down.


Yes, those are some of the categories I was thinking of. Most of fhe
issues involved in doing, say, a real-time simulation of an ODE system,
perhaps with hardware interfaces, are a *LOT* different from doing a
queing theory simulation. And then there are things like electronic
circuit simulations (SPICE et. al.) and who knows what else. Fortran is
often used in those kinds of sims. I don't think Fortran is typically
used in things like MMORPGs such as World of Warcraft, which are
certainly simulations and have yet another very different class of
issues. In some sense, one could think of most computer applications as
being simulations of something.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com