/*--------------------------------*- 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 volScalarField; location "0"; object CH4; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #include "include" dimensions []; internalField { type zonal; defaultValue $!sleeve/CH4; zones { pipe { type lookup; value $!pipe/CH4; } } } boundaryField { inletSleeve { type fixedValue; value uniform $!sleeve/CH4; } inletPipe { type fixedValue; value uniform $!pipe/CH4; } outletSleeve { type inletOutlet; inletValue uniform $!sleeve/CH4; } outletPipe { type inletOutlet; inletValue uniform $!pipe/CH4; } wall { type zeroGradient; } membraneSleeve { type semiPermeableBaffleMassFraction; neighbourPatch membranePipe; c 0.1; property massFraction; value uniform $!sleeve/CH4; } membranePipe { type semiPermeableBaffleMassFraction; neighbourPatch membraneSleeve; c 0.1; property massFraction; value uniform $!pipe/CH4; } } // ************************************************************************* //