[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ff3d-users] can we call a c function in input file?
From: |
Stephane Del Pino |
Subject: |
Re: [ff3d-users] can we call a c function in input file? |
Date: |
Tue, 3 Feb 2004 18:47:42 +0100 |
User-agent: |
KMail/1.5.4 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 03 February 2004 18:11, Robert Li wrote:
> Stephane Del Pino,
> We can use abs, log, sin etc. function in input
> file.
> However, when I set the boundary condition, I want to
> call a c function that is written in C in source code
> . Can we do this in ff3d?
> (In heat PDE, we need revise the boundry condition
> every loop by calling another c function)
>
> Robert
I am afraid not... But I do not see what kind of function is not writable in
the language but more easilly in C...
If you mean to impose conditions such as T^4+dnu(T) = g, this has already be
successfuly done with ff3d: you just need to write
T(n+1)*T(n)^3+dnu(T(n)) = g
in ff3d --- going back to standard Robin conditions.
Concerning external functions/modules. This is not something that will be
implemented soon. Many other functionnalities are to be fixed or added
before.
Since you have the sources, you can add your own function in the language
copying what was done for abs,log,...
I hope that answers to your question.
Best Regards,
Stephane.
- --
Stéphane Del Pino Tel: (33)144277170 - Fax: (33)144277200
Laboratoire Jacques-Louis Lions - Université Pierre et Marie Curie
- -+-
http://www.freefem.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAH97BbZyhKhZwdc0RApTIAJ0T3/oQ4jpTKEJRxRJB9mq4rkRfBQCg8Vhn
uKlklXBTO7VqEaXmwPVrkUY=
=+zkF
-----END PGP SIGNATURE-----