Bug 212375 - New port: science/tfel - Generates code for material properties on Code Aster.
Summary: New port: science/tfel - Generates code for material properties on Code Aster.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thierry Thomas
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-09-04 20:21 UTC by Pedro F. Giffuni
Modified: 2016-11-11 16:50 UTC (History)
2 users (show)

See Also:


Attachments
svn patch (44.99 KB, patch)
2016-09-04 20:21 UTC, Pedro F. Giffuni
no flags Details | Diff
New proposed version (45.77 KB, patch)
2016-11-11 11:54 UTC, Thierry Thomas
thierry: maintainer-approval? (pfg)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro F. Giffuni freebsd_committer freebsd_triage 2016-09-04 20:21:12 UTC
Created attachment 174378 [details]
svn patch

This package includes the TFEL libraries and the MFront utility. The name of the project is tfel but people will probably know/care about mfront only so I had to name it like this.

The package is useful in combination with later versions of Code Aster.

The configure stuff seems to only recognize i386 and x86_64, I am not usre if it would work on other platforms but that would require adding some hints to the configure.ac.

Passes pkg-plist and stage-qa.
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2016-09-11 09:04:14 UTC
Note: the recent tarballs of Code_Aster, e.g. aster-full-src-12.6.0-4.noarch.tar.gz, include a tarball of MFront:
mfront-2.0.3-1.tar.gz

Don't you think it would be safer to use this one, to be sure that it will work with aster?
Comment 2 Pedro F. Giffuni freebsd_committer freebsd_triage 2016-09-11 15:00:41 UTC
(In reply to Thierry Thomas from comment #1)
There is probably no difference.

I guess we could use the sourceforge one until the new Code Aster lands? The most important from this port is the extra documentation in the tfel site
http://tfel.sourceforge.net/, so it may be useful to keep some reference.
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2016-11-11 11:54:50 UTC
Created attachment 176893 [details]
New proposed version

Attached is a new proposed patch.

Code_Aster needs libAsterInterface, it's why I added --enable-aster to CONFIGURE_ARGS.

Since I was here, I noticed that it tries to use gnuplot when it is installed, so I added it as a dependency. But it you think that this brings too much dependencies, this could be make as an option.

Also added a TEST_TARGET to provide do-test, but ATM it is almost unuseful.
Comment 4 Pedro F. Giffuni freebsd_committer freebsd_triage 2016-11-11 15:45:34 UTC
(In reply to Thierry Thomas from comment #3)

For Code Ater and friends we should be prepared to pull in a lot of stuff bu default. It still seems sane to have an option for gnuplot. but setting it ON by default.

(Approved BTW)
Comment 5 Thierry Thomas freebsd_committer freebsd_triage 2016-11-11 16:50:15 UTC
Committed, thanks!
Comment 6 commit-hook freebsd_committer freebsd_triage 2016-11-11 16:50:20 UTC
A commit references this bug:

Author: thierry
Date: Fri Nov 11 16:49:21 UTC 2016
New revision: 425893
URL: https://svnweb.freebsd.org/changeset/ports/425893

Log:
  `MFront` is a code generator which translates a set of closely related
  domain specific languages into plain C++ on top of the `TFEL`
  library. Those languages covers three kind of material knowledge:

  - material properties (for instance the
    Young modulus, the thermal conductivity, etc.)
  - mechanical behaviours. Numerical performances of
    generated mechanical behaviours was given a particular
    attention. Various benchmarks shows that `MFront`
    implementations are competitive with native implementations
    available in the `Cast3M`, `Code-Aster` and `Cyrano3` solvers.
  - simple point-wise models, such as material swelling
    used in fuel performance codes.

  `MFront` comes with an handy easy-to-use tool called `MTest` that can
  test the local behaviour of a material, by imposing independent
  constraints on each component of the strain or the stress. This tool
  has been much faster (from ten to several hundred times depending on
  the test case) than using a full-fledged finite element solver.

  WWW: http://tfel.sourceforge.net/

  PR:		212375
  Submitted by:	Pedro F. Giffuni

Changes:
  head/science/Makefile
  head/science/tfel/
  head/science/tfel/Makefile
  head/science/tfel/distinfo
  head/science/tfel/files/
  head/science/tfel/files/patch-configure.ac
  head/science/tfel/pkg-descr
  head/science/tfel/pkg-plist