From OpenFOAMWiki

Created for:
OF version 13.png

Working for:
OF version 14.png

This boundary condition can be used to prescribe temporally and spatially varying values on a patch.

1 Usage

In the constant/ directory, create a subdirectory with the name of the patch on which you want to prescribe the fields. You have to specify the entire patch fields for some time instants. The BC will interpolate in time between these instants to the current time step. Create one file for each time instant in this directory. The name of each file must be the corresponding time value. Each file must contain a list with values for each face in the patch.

2 ToDo

  • Code for proper error handling has to be added
  • Support for domain decomposition should be implemented somehow. So far for parallel computations, the entire inflow patch has to stay on one processor.

3 Download

From this wiki: timeVaryingNonuniformFixedValue.tgz

or get the latest version from our SVN-Repository:

svn co

with username 'gast' and password 'gast'

4 Installation

Download the files to your $HOME directory. Extract the directory by running tar xvf TimeVaryingNonuniformFixedValue.tgz. This is assuming your OpenFOAM directory is $HOME/OpenFOAM. NOTE: If you are installing this for OpenFOAM-1.4 then you need to take the files from the $HOME/OpenFOAM/OpenFOAM-1.3 and place them in $HOME/OpenFOAM/OpenFOAM-1.4/

It is important that the files are placed in the correct directory. The structure from within the archive should be maintained (apart from the change from OpenFOAM-1.3 to OpenFOAM-1.4 for a 1.4 install.

Add the entry $(derivedFvPatchFields)/timeVaryingNonuniformFixedValue/timeVaryingNonuniformFixedValueFvPatchFields.C to the file $FOAM_SRC/finiteVolume/Make/files and recompile the libfiniteVolume.

In order to recompile go to "cd $FOAM_SRC/finiteVolume" run "wclean" followed by "wmake". Please note this process may take a while.