SYNOPSIS
freefoam [-b <baseDir>] [-P] [-V | -version] [-h | -help] [--] <application> [<args>]
DESCRIPTION
FreeFOAM is a cross-platform toolkit for computational fluid dynamics (CFD). It consists of a large collection of C++ libraries, allowing the user to write new solvers for partial differential equations using a notation very close to the mathematical one. FreeFOAM comes with a comprehensive set of solvers for a wide range of problems and accompanying pre-/and post-processing utilities.
FreeFOAM is based on the fantastic Open-Source OpenFOAM software. The goal of the FreeFOAM project is to remove the system-dependencies from OpenFOAM and make it generally more useable and easier to install.
The freefoam(1) command is used to invoke the actual FreeFOAM applications. It was mainly created to avoid putting a large number of binaries on the system PATH, cluttering the namespace unnecessarily. It also allows for the user to easily add her own applications to the search path, without having to extend the PATH variable or being root.
freefoam(1) uses the following mechanism to find the application <name>:
- • It searches in the directory <libexecDir> for an executable with the name freefoam-<name>. <libexecDir> defaults to /usr/local/libexec/FreeFOAM-0.1.0. This can be overridden using the -b option.
- • If the FREEFOAM_PATH variable is set, it is prepended to the above described search path. It is a colon-separated list of directories.
- • The -P option can be used to append the system PATH to the search path.
OPTIONS
-b <baseDir>
- Specify a different directory to search for applications (default is /usr/local/libexec/FreeFOAM-0.1.0)
-P
- Also search the system PATH variable first
--
- Separates options for this program from the application and its arguments (useful if the application name should start with a -)
-V | -version
- Display the version of FreeFOAM and exit
-h | -help
- Display an option summary
<application>
- The short name of the application to run (i.e. for the freefoam-ico application the short name would be ico)
<args>
- Arguments and options to be passed to the application
environment variables: FREEFOAM_PATH specify an alternative path where to search for applications
FREEFOAM STANDARD APPLICATIONS
The following sections give a short description for all the available standard solvers and utilities. More information is available from the individual manual pages.
SOLVERS
Basic Solvers
- Solves a simple Laplace equation, e.g. for thermal diffusion in a solid.
- Solves a transport equation for a passive scalar.
- Simple potential flow solver which can be used to generate starting fields for full Navier-Stokes codes.
Combustion Solvers
freefoam-PDR(1)
- Solver for compressible premixed/partially-premixed combustion with turbulence modelling.
- Solver for compressible premixed/partially-premixed combustion with turbulence modelling.
freefoam-Xi(1)
- Solver for compressible premixed/partially-premixed combustion with turbulence modelling.
- Solver for cold-flow in internal combustion engines.
- Solver for diesel engine spray and combustion.
- Solver for diesel spray and combustion.
- Solver for internal combustion engines.
- Solver for combustion with chemical reactions.
- Solver for combustion with chemical reactions using density based thermodynamics package.
- Transient Solver for Fires and turbulent diffusion flames.
Compressible Flow Solvers
- Density-based compressible flow solver based on central-upwind schemes of Kurganov and Tadmor.
- Density-based compressible flow solver based on central-upwind schemes of Kurganov and Tadmor.
- Transient solver for laminar or turbulent flow of compressible fluids for HVAC and similar applications.
freefoam-rhoPorousMRFPimple(1)
- Transient solver for laminar or turbulent flow of compressible fluids with support for porous media and MRF for HVAC and similar applications.
- Steady-state solver for turbulent flow of compressible fluids with RANS turbulence modelling, and implicit or explicit porosity treatment.
- Steady-state SIMPLE solver for laminar or turbulent RANS flow of compressible fluids.
- Transient PISO solver for compressible, laminar or turbulent flow.
- Transient solver for trans-sonic/supersonic, laminar or turbulent flow of a compressible gas.
- Transient solver for trans-sonic/supersonic, laminar flow of a compressible liquid.
- Transient solver for trans-sonic/supersonic, laminar or turbulent flow of a compressible gas with mesh motion.
Electromagnetic Solvers
- Solver for electrostatics.
freefoam-mhd(1)
- Solver for magnetohydrodynamics (MHD): incompressible, laminar flow of a conducting fluid under the influence of a magnetic field.
Heat Transfer Solvers
freefoam-buoyantBoussinesqPimple(1)
- Transient solver for buoyant, turbulent flow of incompressible fluids.
freefoam-buoyantBoussinesqSimple(1)
- Steady-state solver for buoyant, turbulent flow of incompressible fluids.
- Transient solver for buoyant, turbulent flow of compressible fluids for ventilation and heat-transfer.
- Steady-state solver for buoyant, turbulent flow of compressible fluids.
freefoam-buoyantSimpleRadiation(1)
- Steady-state solver for buoyant, turbulent flow of compressible fluids, including radiation, for ventilation and heat-transfer.
- Combination of heatConductionFoam and buoyantFoam for conjugate heat transfer between a solid region and fluid region.
freefoam-chtMultiRegionSimple(1)
- Steady-state version of chtMultiRegionFoam.
Incompressible Flow Solvers
- Steady-state solver for 1D turbulent flow, typically to generate boundary layer conditions at an inlet, for use in a simulation.
- Incompressible LES solver for flow in a channel.
freefoam-ico(1)
- Transient solver for incompressible, laminar flow of Newtonian fluids.
- Transient solver for incompressible, laminar flow of non-Newtonian fluids.
- Steady-state solver for incompressible, turbulent flow.
- Transient solver for incompressible, flow of Newtonian fluids on a moving mesh using the PIMPLE (merged PISO-SIMPLE) algorithm.
- Large time-step transient solver for incompressible, flow using the PIMPLE (merged PISO-SIMPLE) algorithm.
- Transient solver for incompressible flow.
- Transient solver for inviscid shallow-water equations with rotation.
- Steady-state solver for incompressible, turbulent flow with implicit or explicit porosity treatment.
Discrete Methods Solvers
freefoam-md(1)
- Molecular dynamics solver for fluid dynamics.
- Equilibrates and/or preconditions molecular dynamics systems.
- Direct simulation Monte Carlo (DSMC) solver for 3D, transient, multi- species flows.
Lagrangian Solvers
- Transient solver for compressible, turbulent flow with coal and limestone parcel injections, and combustion.
freefoam-porousExplicitSourceReactingParcel(1)
- Transient PISO solver for compressible, laminar or turbulent flow with reacting multiphase Lagrangian parcels for porous media, including explicit sources for mass, momentum and energy.
- Transient PISO solver for compressible, laminar or turbulent flow with reacting Lagrangian parcels.
freefoam-uncoupledKinematicParcel(1)
- Transient solver for the passive transport of a single kinematic particle cloud.
Multiphase Solvers
- Solver for a system of 2 incompressible fluid phases with one phase dispersed, e.g. gas bubbles in a liquid.
- Solver for 2 compressible, isothermal immiscible fluids using a VOF (volume of fluid) phase-fraction based interface capturing approach.
freefoam-compressibleInterDyM(1)
- Solver for 2 compressible, isothermal immiscible fluids using a VOF (volume of fluid) phase-fraction based interface capturing approach, with optional mesh motion and mesh topology changes including adaptive re-meshing.
- Solver for 2 incompressible, isothermal immiscible fluids using a VOF (volume of fluid) phase-fraction based interface capturing approach.
- Solver for 2 incompressible, isothermal immiscible fluids using a VOF (volume of fluid) phase-fraction based interface capturing approach, with optional mesh motion and mesh topology changes including adaptive re-meshing.
- Solver for 2 incompressible, isothermal immiscible fluids.
- Solver for 2 incompressible, isothermal immiscible fluids.
- Solver for 2 incompressible, isothermal immiscible fluids with phase-change (e.g. cavitation).
- Transient cavitation code based on the homogeneous equilibrium model from which the compressibility of the liquid/vapour "mixture" is obtained.
freefoam-MRFMultiphaseInter(1)
- Solver for n incompressible fluids which captures the interfaces and includes surface-tension and contact-angle effects for each phase.
- Solver for n incompressible fluids which captures the interfaces and includes surface-tension and contact-angle effects for each phase.
- Solver for 2 incompressible fluids for simulating the settling of the dispersed phase.
- Solver for mixing 2 incompressible fluids.
- Solver for a system of 2 incompressible fluid phases with one phase dispersed, e.g. gas bubbles in a liquid.
- Solver for 3 incompressible fluids, two of which are miscible, using a VOF method to capture the interface.
Stress-Analysis
- Transient segregated finite-volume solver of linear-elastic, small-strain deformation of a solid body, with optional thermal diffusion and thermal stresses.
freefoam-solidEquilibriumDisplacement(1)
- Steady-state segregated finite-volume solver of linear-elastic, small-strain deformation of a solid body, with optional thermal diffusion and thermal stresses.
UTILITIES
Advanced Mesh Manipulation
- Utility to refine cells near to a surface.
- Collapse short edges and combines edges that are in line.
- Checks for multiple patch faces on same cell and combines them.
- Manipulates mesh elements.
- Refines a hex mesh by 2x2x2 cell splitting.
- Utility to refine cells next to patches.
- Tries to figure out what the refinement level is on refined cartesian meshes. Run BEFORE snapping.
- Utility to remove faces (combines cells on both sides).
- Select cells in relation to surface.
- Utility to split cells with flat faces.
Mesh Conversion
- Converts an ANSYS input mesh file, exported from I-DEAS, to FOAM format.
- Converts a CFX 4 mesh to FOAM format.
freefoam-fluent3DMeshToFoam(1)
- Converts a Fluent mesh to OpenFOAM format.
- Converts a Fluent mesh to FOAM format including multiple region and region boundary handling.
- Writes out the FOAM mesh in Fluent mesh format.
- Reads an OpenFOAM mesh and writes a pro-STAR (v4) bnd/cel/vrt format.
- Converts a GAMBIT mesh to FOAM format.
- Reads .msh file as written by Gmsh.
- I-Deas unv format mesh conversion.
- Converts a KIVA3v grid to FOAM format.
- Converts .msh file generated by the Adventure system.
freefoam-netgenNeutralToFoam(1)
- Converts neutral file format as written by Netgen v4.4.
- Plot3d mesh (ascii/formatted format) converter.
- Calculate the dual of a polyMesh. Adheres to all the feature and patch edges.
- Converts a STAR-CD SAMM mesh to FOAM format.
- Converts a Star-CD (v4) pro-STAR mesh into OpenFOAM format.
- Converts a STAR-CD PROSTAR mesh into FOAM format.
- Converts .ele and .node and .face files, written by tetgen.
- For mesh debugging: writes mesh as three separate OBJ files which can be viewed with e.g. javaview.
Mesh Generation
- Extrude mesh from existing patch or from patch read from file.
- A multi-block mesh generator.
- Automatic split hex mesher. Refines and snaps to surface.
- Takes 2D mesh (all faces 2 points only, no front and back faces) and creates a 3D mesh by extruding with specified thickness.
Mesh Manipulation
- Attach topologically detached mesh using prescribed mesh modifiers.
- Divides external faces into patches based on (user supplied) feature angle.
- Selects a cell set through a dictionary.
- Checks validity of a mesh.
- Makes internal faces into boundary faces.
- Utility to create patches out of selected boundary faces.
- Deforms a polyMesh using a displacement field U and a scaling factor supplied as an argument.
- Selects a face set through a dictionary.
- Flattens the front and back planes of a 2D cartesian mesh.
- Picks up cells with cell centre inside of surface.
- Merge two meshes.
freefoam-mergeOrSplitBaffles(1)
- Detects faces that share points (baffles). Either merge them or duplicate the points.
- Mirrors a mesh around a given plane.
- Mesh motion and topological mesh changes utility.
- Solver for moving meshes for engine calculations.
- Solver for moving meshes.
- Read obj line (not surface!) file and convert into vtk.
- Selects a point set through a dictionary.
- Utility to refine cells in multiple directions.
- Renumbers the cell list in order to reduce the bandwidth, reading and renumbering all fields from all the time directories.
- Rotates the mesh and fields from the direcion n1 to the direction n2.
- Manipulate a cell/face/point/ set or zone interactively.
- Add pointZones/faceZones/cellZones to the mesh from similar named pointSets/faceSets/cellSets.
- Splits mesh by making internal faces external.
- Splits mesh into multiple regions.
-
Stitches a mesh.
- Selects a section of mesh based on a cellSet.
- Transforms the mesh points in the polyMesh directory according to the translate, rotate and scale options.
- Reads in a mesh with hanging vertices and zips up the cells to guarantee that all polyhedral cells of valid shape are closed.
Error Estimation
- Estimates the error in the solution for a scalar transport equation in the standard form.
- Estimates error for the incompressible laminar CFD application icoFoam.
freefoam-estimateScalarError(1)
- Estimates the error in the solution for a scalar transport equation in the standard form.
- Estimates error for the incompressible laminar CFD application icoFoam.
Miscellaneous Utilities
- Read the dictionary provided as an argument, expand the macros etc. and write the resulting dictionary to standard output.
- Write out all library debug switches.
- Converts all IOobjects associated with a case into the format specified in the controlDict.
- Interrogates a case and prints information to screen.
- Writes fields and boundary condition info for each patch at each requested time instance.
Parallel Processing
freefoam-redistributeMeshPar(1)
- Redistributes existing decomposed mesh and fields according to the current settings in the decomposeParDict file.
freefoam-reconstructParMesh(1)
- Reconstructs a mesh using geometric information only.
- Automatically decomposes a mesh and fields of a case for parallel execution of OpenFOAM.
- Reconstructs a mesh and fields of a case that is decomposed for parallel execution of OpenFOAM.
Post-Processing
- Generic wrapper for calculating a quantity at each time.
- Calculate intensive fields (U and T) from averaged extensive fields from a DSMC calculation.
- Generates a VTK file of particle tracks for cases that were computed using a tracked-parcel-type cloud.
freefoam-foamToEnsightParts(1)
freefoam-execFlowFunctionObjects(1)
freefoam-createTurbulenceFields(1)
freefoam-R(1)
freefoam-Co(1)
freefoam-Pe(1)
freefoam-Q(1)
Data Conversion
Pre-Processing
freefoam-applyBoundaryLayer(1)
- Apply a simplified boundary-layer model to the velocity and turbulence fields based on the 1/7th power-law.
freefoam-applyWallFunctionBoundaryConditions(1)
- Updates OpenFOAM RAS cases to use the new (v1.6) wall function framework.
- Makes a box of turbulence which conforms to a given energy spectrum and is divergence free.
- Utility to change dictionary entries.
- Initialise a case for dsmcFoam by reading the initialisation dictionary system/dsmcInitialise.
- Generates a swirling flow for engine calulations.
- Simple tool to upgrade the syntax of system/fvSolution::solvers.
- Maps volume fields from one mesh to another.
- Initialises fields for a molecular dynamics (MD) simulation.
- Selects a cell set through a dictionary.
Surface File Manipulation
- Add two surfaces. Does geometric merge on points. Does not check for overlapping/intersecting triangles.
- Patches surface according to feature angle. Like autoPatch.
- Performs various checks on surface.
- Collapses small edges, removing triangles and converts sliver triangles into split edges by projecting point onto base of triangle.
- Surface coarsening using bunnylod.
- Converts from one surface mesh format to another.
freefoam-surfaceFeatureConvert(1)
- Extracts and writes surface features to file.
freefoam-surfaceFeatureExtract(1)
- Extracts and writes surface features to file.
- Finds nearest triangle and vertex.
freefoam-surfaceMeshConvert(1)
- Convert between surface formats with optional scaling or transformations (rotate/translate) on a coordinateSystem.
freefoam-surfaceMeshConvertTesting(1)
- Converts from one surface mesh format to another, but primarily used for testing functionality.
- Export from surfMesh to various third-party surface formats with optional scaling or transformations (rotate/translate) on a coordinateSystem.
- Import from various third-party surface formats into surfMesh with optional scaling or transformations (rotate/translate) on a coordinateSystem.
freefoam-surfaceMeshTriangulate(1)
- Extracts triSurface from a polyMesh.
- Set normal consistent with respect to a user provided outside point.
- Merges points on surface if they are within absolute distance.
freefoam-surfaceRedistributePar(1)
- (Re)distribution of triSurface. Either takes an undecomposed surface or an already decomposed surface and redistribute it so each processor has all triangles that overlap its mesh.
freefoam-surfaceRefineRedGreen(1)
- Refine by splitting all three edges of triangle (red refinement). Neighbouring triangles (which are not marked for refinement get split in half (green) refinement.
- Example of simple laplacian smoother.
freefoam-surfaceSplitByPatch(1)
- Writes regions of triSurface to separate files.
freefoam-surfaceSplitNonManifolds(1)
- Takes multiply connected surface and tries to split surface at multiply connected edges by duplicating points.
- A surface analysis tool which sub-sets the triSurface to choose only a part of interest.
- Reads surface and applies surface regioning to a mesh.
freefoam-surfaceTransformPoints(1)
- Transform (scale/rotate) a surface.
Thermophysical Utilities
- Calculates the adiabatic flame temperature for a given fuel over a range of unburnt temperatures and equivalence ratios.
- Converts CHEMKINIII thermodynamics and reaction data files into FOAM format.
- Calculates the equilibrium level of carbon monoxide.
- Calculates the equilibrium flame temperature.
freefoam-mixtureAdiabaticFlameT(1)
- Calculates the adiabatic flame temperature for a given mixture at a given temperature.
- Calculate the the infinitely-fast chemistry relationships in function of ft. for a given fuel.
FreeFOAM Helper Scripts
Below you find an overview of the small helper scripts provided by FreeFOAM.
- Remove the contents of the constant/polyMesh directory.
- Copy settings from one case directory to another, without copying the mesh or results.
- Computes the time used per iteration.
- Extract the residuals of k and epsilon at each time step.
- Extract the residuals of U, V, W and p at each time step.
freefoam-job(1)
- Runs a FreeFOAM job in the background.
freefoam-log(1)
- Extracts xy files from Foam logs.
- Start ParaView3 to visualize a case.
- Extract solver statistics from a log file.
CONFIGURATION MECHANISM
FreeFOAM offers a number of global configuration options. These include
- • location of the API documentation and the method to display it
- • debug, info and optimisation switches
- • physical constants
- • plugin search paths
- • parallel communications method
- • starting of a parallel job
Global Configuration Files
Unfortunately the OpenFOAM library (on which FreeFOAM builds) and some applications require the following files to be present for start-up:
-
•
cellModels
-
•
controlDict
-
•
thermoData/BurcatCpData
-
•
thermoData/therm.dat
It finds them in the following places (in the specified order, picking the first hit):
- 1. Under the directory specified in the $FREEFOAM_CONFIG_DIR environment variable
- 2. In $HOME/.FreeFOAM/0.1
- 3. In $HOME/.FreeFOAM
- 4. In the installation directory of the configuration files, /usr/local/etc/FreeFOAM/0.1.0
where the versions in above directory names depend on the version of the FreeFOAM application to be run.
Locating the API documentation
All FreeFOAM applications accept the options -doc and -srcDoc. The former locates and displays the API documentation of the application, the latter the source code. This, however, requires that FreeFOAM is able to locate the API documentation and knows which program to use for display.
By default FreeFOAM uses the API documentation provided on http://freefoam.sf.net/doc/API because most users will not want to install the sizeable documentation package. The method FreeFOAM uses to locate the documentation files is via index files which are conventional FreeFOAM dictionaries. Each of them contains an entry docDir specifying the documentation root location (such as http://freefoam.sf.net/doc/API) and a dictionary called docFiles mapping the application name to the names of the corresponding HTML documentation and source page.
These documentation indices are found by querying the list Documentation::doxyDocIndices in the global controlDict file. If multiple documentation indices are specified, the first index that provides documentation for the given application is picked.
Displaying the API documentation
FreeFOAM can automatically open a browser window displaying the HTML documentation for you. The entry Documentation::docBrowser in the global controlDict can be used to change which program is used for this. In this string the token %f gets replaced by the filename to open.
Debug, Info and Optimisation Switches
The lists DebugSwitches, InfoSwitches and OptimisationSwitches in the global controlDict file determine some global run-time behaviour of FreeFOAM. The entries in DebugSwitches can be set to 1 for more verbose output in the specified class.
The InfoSwitches::writePrecision setting determines the write precision in the output to the terminal (i.e. not the output written to files). Whether a job-info file should be created can be specified by enabling InfoSwitches::writeJobeInfo.
For files that are modifieable during run-time (e.g. to change the interval at which the output is created), FreeFOAM compares the modification times of these files in order to determine whether they have to be re-read. The setting OptimisationSwitches::fileModificationSkew determines the minimum modification-time difference in seconds for a file to be considered changed.
The setting OptimisationSwitches::commsType determines whether inter-process communications are either blocking, scheduled or nonBlocking.
OptimisationSwitches::floatTransfer causes to convert double values to float before transferring them through the communications library. This saves some bandwidth at the loss of accuracy.
The sum operation across processors can be executed either in a linear or a tree fashion. Especially for a large number of processors, tree-summation is significantly faster. The threshold at which to switch from linear to tree-summation is determined by OptimisationSwitches::nProcsSimpleSum.
Physical Constants
DimensionedConstants::R
- Universal gas constant
DimensionedConstants::Pstd
- Standard pressure
DimensionedConstants::Tstd
- Standard temperature
DimensionedConstants::sigmaSB
- Stefan-Boltzmann constant
Plugin Search Path
FreeFOAM very often relies on dynamically loading libraries (a.k.a plugins). If the library name is given as an absolute path, FreeFOAM tries to load it directly. To locate libraries specified just by their name or with a relative path, FreeFOAM first tries to find the library in one of the directories specified in the list LibrarySearchPaths in the global controlDict and, if the library was not found, falls back to the mechanism provided by your operating system (i.e. for Linux systems this would be the LD_LIBRARY_PATH and the default search path).
Selecting the Parallel Communications Library
Both, FreeFOAM and OpenFOAM abstract the parallel operations into the Pstream library, making it rather simple to firstly switch between parallel implementations and secondly port the software to a new communications library. However, FreeFOAM uses a much more flexible mechanism of determining which Pstream implementation library to use than OpenFOAM. The latter does this by adjusting the LD_LIBRARY_PATH environment variable. As FreeFOAM wants to be a well behaved Linux citizen, this is not an option. Instead, FreeFOAM dynamically loads the desired Pstream library at startup (i.e. as a plug-in). The following list details how FreeFOAM determines what library to load (if at all):
- 1. If the environment variable FREEFOAM_PSTREAM_LIBRARY is set, FreeFOAM will try to load the library specified by it.
- 2. If the sub-dictionary PstreamImplementation exists in the global controlDict file (see above), it reads the value of the entry PstreamImplementation::configName therein. This entry can be overridden by setting the FREEFOAM_PSTREAM_CONFIG environment variable. It then expects that a sub-dictionary of PstreamImplementation with the name specified in FREEFOAM_PSTREAM_CONFIG or PstreamImplementation::configName exists. If that sub-dictionary contains the entry PstreamImplementation::library, it will try to load a library specified by the value of that entry.
Please note that this library is also considered to be a plugin, and thus is located in the same way as described above.
After FreeFOAM (possibly) loaded the library, it will try to instantiate concrete implementations of the abstract base classes PstreamImpl, IPstreamImpl and OPstreamImpl. Which classes are to be instantiated is determined as follows:
- 1. FreeFOAM queries the environment variables FREEFOAM_PSTREAM_CLASS, FREEFOAM_IPSTREAM_CLASS and FREEFOAM_OPSTREAM_CLASS for the class names to be instantiated.
- 2. For any of the variables not set, it requires the sub-dictionary PstreamImplementation to be present in the global controlDict, reads the value of FREEFOAM_PSTREAM_CONFIG or the entry PstreamImplementation::configName and similarly to the library loading, loads the sub-dictionary specified by that value. It then expects to find the entries PstreamImplementation::Pstream, PstreamImplementation::IPstream and PstreamImplementation::OPstream which specify the names of the classes to load.
This means that one can create a global controlDict file containing (among other things) something like the following:
-
PstreamImplementation { //configName dummy; configName mpi; dummy { library libdummyPstream.so; Pstream dummyPstreamImpl; OPstream dummyOPstreamImpl; IPstream dummyIPstreamImpl; } mpi { library libmpiPstream.so; Pstream mpiPstreamImpl; OPstream mpiOPstreamImpl; IPstream mpiIPstreamImpl; } }
This way the administrator can provide a global controlDict in the FreeFOAM installation. Every user can then override that controlDict by supplying her own file in her home directory as detailed above. In order to select a particular Pstream implementation for a specific communications library, the user can then either adjust the PstreamImplementation::configName entry in the global controlDict file, set the FREEFOAM_PSTREAM_CONFIG variable or, for full control, set the variables FREEFOAM_PSTREAM_LIBRARY, FREEFOAM_PSTREAM_CLASS, FREEFOAM_IPSTREAM_CLASS and FREEFOAM_OPSTREAM_CLASS.
Starting of a Parallel Job
Some of the tutorial scripts need to run FreeFOAM applications in parallel. However, how to do so differs strongly from system to system and between parallel communication libraries. This is why the command line to start an application in parallel is configureable in the parRunTemplate setting. ${NPROCS}, ${PAROPTS}, ${APPLICATION} and ${ARGS} are placeholders for the number of processors to use, options for the parallel communications system, the application to run and its arguments, respectively. Note that the -parallel option is NOT included in ${ARGS}.
ENVIRONMENT VARIABLES
FREEFOAM_CONFIG_DIR
- Directory containing the global configuration files
FREEFOAM_PATH
- Additional, colon separated paths in which to first search for FreeFOAM executables
FREEFOAM_PSTREAM_CONFIG
- Name of the Pstream configuration in the global controlDict file to use
FREEFOAM_PSTREAM_LIBRARY
- The Pstream library to load
FREEFOAM_PSTREAM_CLASS
- Name of the concrete PstreamImpl class to instantiate
FREEFOAM_IPSTREAM_CLASS
- Name of the concrete IPstreamImpl class to instantiate
FREEFOAM_OPSTREAM_CLASS
- Name of the concrete OPstreamImpl class to instantiate
AUTHOR
Michael Wild <[email protected]>
FREEFOAM
Part of the freefoam(1) suite
COPYRIGHT
- • Copyright © 1991-2010 OpenCFD Ltd.
- • Copyright © 2008-2012 Michael Wild.