MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: fortran dynamic link library

  • To: mathgroup at smc.vnet.net
  • Subject: [mg21207] Re: fortran dynamic link library
  • From: Dave Richardson <dhr at glue.umd.edu>
  • Date: Fri, 17 Dec 1999 01:25:12 -0500 (EST)
  • Organization: University of Maryland
  • References: <831joc$dig@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Harold,

Mathematica needs a protocol called MATHLINK.
My advice to you, is to get a book called "Mathematica for Scientist and
Engineers".
It has many examples, as well as some MATHLINK stuff, specifically, a call to
Fortran.

Dave!

HARALD.RAISER at behrgroup.com wrote:

> Hi to all,
>
> a few weeks ago I started programming with Mathematica. Now I do have the
> problem calling a Fortran Link Library (DLL based on 32-bit-mode). I have
> to call the Fortran Link Library several times during my calculation
>  in Mathematica (integration of a differential equation). The DLL
> calculates for example the density and the enthalpy as an output while
> temperature and pressure is the input data. There is a possibility
> in calling the DLL from Excel. This call looks like:
>
> Aufrufen("...path of the DLL...\Carb_dio.DLL","PB";"BEE";B1;B2)
>
> "Aufrufen" is German vocabulary and means in English "call"
> Carb_dio.DLL is the name of the Fortran DLL
> PB is a fortran function, which is defined in the DLL
> BEE is a fortran function, which is defined in the DLL
> B1 and B2 are the cells in Excel, where the input data (temperature and
> pressure) are located
>
> Now my questions:
>
> 0. Is there an equivalent Mathematica command like the described Excel
> command which allows to exchange data with the Fortran DLL ? Please sent
> an example! Is a change of the Fortran DLL source
> code necessary for the data exchange with Mathematica?
> 1. Is the dataexchange on both ways (Mathematica to Fortran and vice
> verses) via  a  DLL possible?
> If yes, please sent an example.
> 2. Is the dataexchange on both ways (Mathematica to Fortran and vice
> verses) via a
> Exe-file possible? If yes, please sent an example.
> 3. Can you recommand me a book, concerning how to structure and build big
> programmes?
>
> Can anybody help me? I do really appreciate any help. Thanks in advance!
>
> Harold
>
> E-Mail: harald.raiser at behrgroup.com
>
> ---- 29-11-99 18.47 ---- Gesendet an   -----------------------------------
>   -> mathgroup(a)wolfram.com

--
Dave Richardson
University of Maryland
Department of Mechanical Engineering
Center for Environmental Energy Engineering
(301) 405-8726
dhr at glue.umd.edu




  • Prev by Date: Re: Re: Running Mathematica under Linux Red Hat
  • Next by Date: Re: efficient in-place list element replacement?
  • Previous by thread: Re: fortran dynamic link library
  • Next by thread: Re: Running Mathematica under Linux Red Hat