1

Previous: Boundary and initial condition Up: Boundary and initial condition Next: dimensions
This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

OpenFOAM file header

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

 

Mixing Interface Family of Boundary Conditions

Mixing Interface boundary conditions are very strong tool in CFD. It is being used mainly for steady state simulations. The big benefit of mixingInterface is the averaging of quantities (vanishing the rotor position). Meshes of different elements and even of different size, position, topology and orientation can be inter-connected.

Special averaging is employed. At the interfaces, every scalar quantity is mapped with help of its radial (circumferential) average. The velocity vector at the interfaces is reconstructed from mass flow (also from pressure if compressible) and averaged velocity angles.

Mixing Interface Family of Boundary Conditions

Mixing Interface boundary conditions are very strong tool in CFD. It is being used mainly for steady state simulations. The big benefit of mixingInterface is the averaging of quantities (vanishing the rotor position). Meshes of different elements and even of different size, position, topology and orientation can be inter-connected.

Special averaging is employed. At the interfaces, every scalar quantity is mapped with help of its radial (circumferential) average. The velocity vector at the interfaces is reconstructed from mass flow (also from pressure if compressible) and averaged velocity angles.

3 2

Figure: mixingInterface boundary condition, radial division example

Previous: Meshing options: Snappy hex Up: TCFD – GUI Setup Next: TCFD- Running &
This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

Scripting

For experienced users it is possible to extend the TCFD workflow by custom scripts (advanced). These scripts are expected to be written in basic Python 2.7 and they are executed at specific moments during the workflow. It is allowed to assign multiple execution points to a single script, see figure [*]. The script can use the predefined variable CaseDirectory, which contain the full absolute path to the directory with the OpenFOAM case. Besides the standard Python functions one can also use the TCFD-specific functions SetEntry and WriteFile. For example the following tiny script SetEntry("system/fvSolution", "solvers/p/nCellsInCoarsestLevel", "10") WriteFile("system/fvSolution") will change the coarsest-level cell number in pressure GAMG solver to 10, followed by writing the modified file. The function SetEntry does all modifications in memory and the result is written to disk only when the function WriteFile is used, or during writing requested by the workflow. Apart from the two functions, there is also a predefined string variable CaseDirectory which contains the absolute path to the case and two other access functions RenameEntry(, , ) DeleteEntry(, ) with obvious purpose: The former changes the name of an entry (i.e. the keyword that introduces the entry), whereas the latter erases the whole entry from the file.
cfd processor TCFDSource scripting

Figure: Plugin TCFDSource – addition of custom user scripts to be executed during the workflow.