[Trilinos-Users] Fortran User

Chris Jackson chris.jackson at mayahtt.com
Mon Apr 28 06:52:54 MDT 2014

Hi Pedro,

Some questions:

1)      Do you have more than a year or less than a year to complete this project?

2)      Have you ever written a CFD code before or worked in another CFD code?

3)      Is this part of a PhD thesis project?

4)      Have you looked at CFD-specific open source libraries?

5)      Have you considered using some language other than Fortran to write your GUI?

You can definitely use Trilinos to support development of a CFD code.  If this is the first CFD code you have written then I think that expecting to find all the building blocks for your CFD code ready out of the box in Trilinos is a little optimistic.  How to start depends partly on your timeline.  You should first settle on what kind of grids/meshes, spatial discretization schemes, and temporal discretization schemes you think you need for the problems you want to solve.  Those choices can be influenced by many other aspects of the problem, for example, how you want to model turbulence (assuming you want to model turbulence).  E.g.,., if you are doing LES simulations then you would want to use a high order scheme, probably on a structured mesh.  If you are more concerned about conforming to complex geometries, you may wish to go with unstructured meshes and a lower order scheme.  There are a lot more things to consider.  It seems you have specific kinds of problems you want to solve (chemical reactors), so you need to ask yourself how other people have solved those problems and how you want your code to be different.

Finally, I’d encourage you to investigate other GUI languages out there.  There are quite a few which are more popular than Fortran.


Chris Jackson

From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Pedro Rodrigues
Sent: Friday, April 25, 2014 6:26 AM
To: Aytekin Gel
Cc: trilinos-users at software.sandia.gov
Subject: Re: [Trilinos-Users] Fortran User

    I want to use the capabilities of Trilinos concerning the development of a CFD app for chemical reactors  that uses discretization, mesh generation and also the solvers. My idea is build the CFD models for several reactors, solve the CFD model controlling it with some code and after that grab the results and make it visual with graphs (2D and 3D). The GUI app that I will build must control the numerical data the solution and also the visualization.

On Fri, Apr 25, 2014 at 8:10 AM, Aytekin Gel <aike at alpemi.com<mailto:aike at alpemi.com>> wrote:
Hi Pedro,

I noticed in your e-mail that you mentioned about using Trilinos in chemical reactor CFD simulation.
As my application domain is chemically reacting multiphase flow CFD simulations, I wanted to briefly share
our experience although it is still work in progress. We are probably one of the few Trilinos users who integrated several packages within Trilinos framework with a Fortran 90 based CFD solver. I need to mention that this integration was possible due to a close collaboration with one of the Trilinos developers.
It wasn't clear to me from your e-mail whether you are trying to build a complete CFD solver utilizing various packages from Trilinos as you were mentioning about discretization, mesh generation, linear and non-linear solvers. In our case, we had an existing Fortran based CFD code and we wanted to replace some of the critical components with alternatives from Trilinos. For this purpose, we wanted to utilize the linear equation solvers from Trilinos framework as our BiCGSTAB based linear equation solver was becoming quite difficult to maintain and non-scalable especially with the increasingly heterogeneous architectures utilizing many cores. So we decided to integrate our CFD code with ML (preconditioners) and AztecOO (linear equation solvers) from Trilinos framework. With the help of our collaborator, we were able to develop Fortran bindings specifically for our data structures. This interface passes the matrix and RHS to ML and AztecOO for linear equation solution and returns the results.

I wanted to mention that now there appears to be ForTrilinos, which might be utilized instead of custom Fortran bindings. However, I don't know the complete details about availability of ML and AztecOO through ForTrilinos. ForTrilinos was not available for us when we started this effort, and also as far as I understand you may need to utilize specific Fortran compilers, which can support the advanced features in ForTrilinos. I am sure one of the developers might be able to address the details.
I hope this will be useful.

Aytekin Gel

On Thu, Apr 24, 2014 at 11:26 AM, Pedro Rodrigues <pjsgr100 at gmail.com<mailto:pjsgr100 at gmail.com>> wrote:

I downloaded this huge ilibrary today and I intend to use it in  chemical reactor CFD simulation. My doubt is this:
    - Concerning what I am purposed to build,i.e, a FORTRAN GUI with Trilinos, which packages should I use concerning discretization, mesh generation, linear and non linear solvers, transient solvers and also graph partitioning?
  thanks in advance

Pedro Rodrigues

Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov<mailto:Trilinos-Users at software.sandia.gov>

Aytekin Gel, Ph.D.

ALPEMI Consulting, LLC

Pedro Rodrigues
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20140428/645c83ed/attachment.html>

More information about the Trilinos-Users mailing list