These two new fvModels operate between a film and a VoF region to transfer film to the corresponding VoF phase when the film is thick enough to be resolved by the VoF solver or from the VoF phase to the film when the near-wall resolution is too low and it is better to treat it as a wall film. This functionality is equivalent to the VoFPatchTransfer fvModel developed for the old film implementation but coded in a much more general manner with implicit treatment of the mass loss from the film or VoF region for better numerical stability and robustness. The simple tutorials/modules/CHT/VoFToFilm case is provided to demonstrate a film being deposited on a surface as the plate is withdrawn from a liquid. It is an updated version of the tutorials/modules/compressibleVoF/plateFilm case.
61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application foamMultiRun;
|
|
|
|
regionSolvers
|
|
{
|
|
film film;
|
|
VoF compressibleVoF;
|
|
}
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 5;
|
|
|
|
deltaT 1e-3;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 0.1;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 10;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep no;
|
|
|
|
maxCo 1;
|
|
maxAlphaCo 1;
|
|
|
|
maxDeltaT 1;
|
|
|
|
// ************************************************************************* //
|