18
A multiphaseInterFoam Tutorial Annika Gram

A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

  • Upload
    others

  • View
    12

  • Download
    1

Embed Size (px)

Citation preview

Page 1: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

A multiphaseInterFoam Tutorial

Annika Gram

Page 2: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

● multiphaseInterFoam● the Case● Code● Results

Page 3: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

multiphaseInterFoam

● based on the VOF method● Gamma● incompressible● multi phase● transient

Page 4: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

the Case

concrete layer

 atmospheric pressure

120 mm

10 mm

10 mm10 mm10 mm H2O

Page 5: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

the Case

= 0 + pl n

Page 6: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

the Case

Page 7: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Code$FOAM_RUN/splash

In this directory the following folders are to be seen:

0  holding files alphas, alphaair, ­crete, ­newcrete, ­water, pd and U as well as subdirectory hide for the original alpha files

constant holding files dynamicMeshDict, environmentalProperties and transportPropertiesas well as subdirectory polyMesh for the files blockMeshDict, boundary, faces, neighbour, owner and points

system holding files controlDict, decomposeParDict, fvSchemes, fvSolution, setFieldsDict

Page 8: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Code$FOAM_RUN/splash/0

Intitial and boundary conditions are specified in the 0 directory. The following holds for this case: Variable Initial Conditionspd zeroGradient, fixedValue and uniform 0 for atmosphereU fixedValue uniform (0 0 0), inletOutlet for atmosphere

alphaszeroGradient

aphaair alphaContactPropertiesthetaProperties 90 0 0 0  inletOutlet for atmosphereuniform 0

Page 9: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Code$FOAM_RUN/splash/constant

Material properties can be found in the constant directory. 

File Initial ConditionsenvironmentalProperties gravitytransportProperties material constants

Page 10: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Code$FOAM_RUN/splash/system

Material properties can be found in the constant directory. 

FilesetFieldscontrolDict computation time 0.2 s

Page 11: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

CodemyHerschelBulkley.C

return (min(nu0_,(tau0_ + k_*(pow(sr(), n_)

        ­ pow(tau0_/nu0_,n_))) / (max(sr(), dimensionedScalar

        ("VSMALL", dimless/dimTime, VSMALL)))));

Page 12: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Codecd $WM_PROJECT_USER_DIR/src/transportModels/incompressible/Make

wmake libsowmake libso

Page 13: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Codecd $FOAM_RUN/splash

blockMeshcheckMeshsetFieldsmultiphaseInterFoam

Page 14: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Resultscd $FOAM_RUN/splash

paraFoam

Page 15: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Resultscd $FOAM_RUN/splash

paraFoam

Page 16: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Resultscd $FOAM_RUN/splash

paraFoam

Page 17: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Results

● changing transportProperties● adding phases

Page 18: A multiphaseInterFoam Tutorial - Thermo › ... › presentationAnnikaGram.pdfmultiphaseInterFoam based on the VOF method Gamma incompressible multi phase transient

Questions