Users:FSI/StructureSolver

From Carat++ Public Wiki
< Users:FSI
Revision as of 10:03, 23 February 2011 by Thomas (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Contents

Structure Field Solver Carat++

Carat++ is used to simulate the structure field within an FSI-analysis. Two specific aspects have to be mentioned, compilation and problem setup. All other aspects are handled in the other parts of this wiki.


Compilation

Carat++ has to installed under Linux operating system, because FSI-jobs only run under Linux. The difference with a standard installation is, that additional code parts are compiled used for communication between Carat++ and CoMA. This communication is based on MPI.

The changes are made within the file "makefile.in". To activate the additional code parts, the flag -DFSI has to added to the compiler directives:

CDIR = ... -DFSI

To use the now included MPI-commands, the compiler needs to know, where to find the MPI-installation. If OpenFOAM is already installed (highly recommended!), the OpenFOAM MPI distribution should be used. This is done by adding:

LIBS = ... -IpathToMPI/include

to the Include-command.

The installation of the Trilinos solver library is not necessary for running FSI-jobs, if the built-in solver is used.

Problem Setup

A partitioned approach is used for simulating FSI problems. This means, that for each specific task of the coupled computation a specific program is used. The software envrionment in our case consists of three programms:

  • the FE-code Carat++ for the solution of the structural subproblem,
  • the FV-code OpenFOAM for the solution of the fluid subproblem,
  • the coupling code CoMA, responsible for everything else: Simulation control, data transfer, communication, coupling algorithms, ...

A grafical representation fo this setup is given in the following figure:


To do a FSI-analysis all three programs have to be installed. Only a Linux-system can be used, because OpenFOAM is only available for Linux and cluster systems for HPC typically only run under Linux OS. The specific information on installation and problem setup of the three programs is given on the bottom of this page. After setup of the problem, the coupled computation is started by running all three programms at the same time, using MPI (Message Passing Interface):

mpiexec -n 1 pathToCarat/carat20.exe caratInputfile : -n 1 pathToCoMA CoMA.exe comaInputfiled : -n 2 OpenFOAM.exe -case pathToFoamCase -parallel

This command will start one carat process, one CoMA process and two OpenFOAM processes, so OpenFOAM runs in parallel.

Single Programs in Detail





Whos here now:   Members 0   Guests 0   Bots & Crawlers 1
 
Personal tools
Content for Developers