Upload folder using huggingface_hub (part 30)
Browse filesFiles changed (20)
- raw/stokes_wave/t27/system/fvSchemesAdded+53
- raw/stokes_wave/t27/system/fvSolutionAdded+77
- raw/stokes_wave/t27/system/setFieldsDictAdded+36
- raw/stokes_wave/t28/0/UAdded+54
- raw/stokes_wave/t28/0/U.templateAdded+54
- raw/stokes_wave/t28/0/alpha.waterAdded
- raw/stokes_wave/t28/0/alpha.water.templateAdded+52
- raw/stokes_wave/t28/0/p_rghAdded+54
- raw/stokes_wave/t28/AllcleanAdded+7
- raw/stokes_wave/t28/AllrunAdded+15
- raw/stokes_wave/t28/constant/gAdded+22
- raw/stokes_wave/t28/constant/polyMesh/boundaryAdded+54
- raw/stokes_wave/t28/constant/polyMesh/facesAdded
- raw/stokes_wave/t28/constant/polyMesh/neighbourAdded
- raw/stokes_wave/t28/constant/polyMesh/ownerAdded
- raw/stokes_wave/t28/constant/polyMesh/pointsAdded
- raw/stokes_wave/t28/constant/transportPropertiesAdded+37
- raw/stokes_wave/t28/constant/turbulencePropertiesAdded+20
- raw/stokes_wave/t28/constant/wavePropertiesAdded+47
- raw/stokes_wave/t28/system/blockMeshDictAdded+89
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class dictionary; location "system"; object fvSchemes;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes{ default Euler;}
gradSchemes{ default Gauss linear;}
divSchemes{ div(rhoPhi,U) Gauss linearUpwind grad(U); div(phi,alpha) Gauss vanLeer; div(phirb,alpha) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;}
laplacianSchemes{ default Gauss linear orthogonal;}
interpolationSchemes{ default linear;}
snGradSchemes{ default orthogonal;}
// ************************************************************************* //1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class dictionary; location "system"; object fvSolution;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers{ "alpha.water.*" { nAlphaCorr 1; nAlphaSubCycles 3; cAlpha 1; }
"pcorr.*" { solver PCG; preconditioner DIC; tolerance 1e-6; relTol 0; }
p_rgh { solver PCG; preconditioner DIC; tolerance 1e-6; relTol 0.1; }
p_rghFinal { solver GAMG; smoother DIC; tolerance 1e-7; relTol 0; }
U { solver PBiCG; preconditioner DILU; tolerance 1e-6; relTol 0.1; }
UFinal { solver PBiCG; preconditioner DILU; tolerance 1e-6; relTol 0; }}
PIMPLE{ momentumPredictor no; nCorrectors 2; nNonOrthogonalCorrectors 0;}
// ************************************************************************* //123456789101112131415161718192021222324252627282930313233343536/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defaultFieldValues( volScalarFieldValue alpha.water 0);
regions( boxToCell { box (0 0 0) (30.0 1.0 0.3393321083203692); fieldValues ( volScalarFieldValue alpha.water 1 ); });
// ************************************************************************* //123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class volVectorField; location "0"; object U;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField{ inlet { type waveVelocity; value uniform (0 0 0); }
outlet { type waveVelocity; value uniform (0 0 0); }
sides { type empty; }
ground { type fixedValue; value uniform (0 0 0); }
top { type pressureInletOutletVelocity; value uniform (0 0 0); }}
// ************************************************************************* //123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class volVectorField; location "0"; object U;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField{ inlet { type waveVelocity; value uniform (0 0 0); }
outlet { type waveVelocity; value uniform (0 0 0); }
sides { type empty; }
ground { type fixedValue; value uniform (0 0 0); }
top { type pressureInletOutletVelocity; value uniform (0 0 0); }}
// ************************************************************************* //12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class volScalarField; object alpha.water;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
boundaryField{ inlet { type waveAlpha; value uniform 0; }
outlet { type zeroGradient; }
ground { type zeroGradient; }
sides { type empty; }
top { type inletOutlet; inletValue uniform 0; value uniform 0; }}
// ************************************************************************* //123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class volScalarField; object p_rgh;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField{ inlet { type fixedFluxPressure; value uniform 0; }
outlet { type fixedFluxPressure; value uniform 0; }
ground { type fixedFluxPressure; value uniform 0; }
sides { type empty; }
top { type totalPressure; p0 uniform 0; }}
// ************************************************************************* //1234567#!/bin/shcd ${0%/*} || exit 1 # Run from this directory. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase0
#------------------------------------------------------------------------------123456789101112131415#!/bin/shcd ${0%/*} || exit 1 # Run from this directory. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
restore0Dir
runApplication blockMesh
runApplication decomposePar
runParallel setFields
runParallel $(getApplication)
#------------------------------------------------------------------------------12345678910111213141516171819202122/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class uniformDimensionedVectorField; location "constant"; object g;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];value ( 0 0 -9.81 );
// ************************************************************************* //123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class polyBoundaryMesh; location "constant/polyMesh"; object boundary;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5( inlet { type patch; nFaces 70; startFace 104180; } outlet { type patch; nFaces 70; startFace 104250; } ground { type wall; inGroups 1(wall); nFaces 750; startFace 104320; } top { type patch; nFaces 750; startFace 105070; } sides { type empty; inGroups 1(empty); nFaces 105000; startFace 105820; })
// ************************************************************************* //12345678910111213141516171819202122232425262728293031323334353637/*---------------------------------------------------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class dictionary; location "constant"; object transportProperties;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phases (water air);
water{ transportModel Newtonian; nu 1e-06; rho 1000;}
air{ transportModel Newtonian; nu 1.48e-05; rho 1;}
sigma 0.07;
// ************************************************************************* //1234567891011121314151617181920/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class dictionary; location "constant"; object turbulenceProperties;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
// ************************************************************************* //1234567891011121314151617181920212223242526272829303132333435363738394041424344454647/*---------------------------------------------------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class dictionary; location "constant"; object waveProperties;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
inlet{ alpha alpha.water;
waveModel StokesV;
nPaddle 1;
waveHeight 0.12874549102447874;
waveAngle 0.0;
rampTime 4.0;
activeAbsorption yes;
wavePeriod 2.852758277012077;}
outlet{ alpha alpha.water;
waveModel shallowWaterAbsorption;
nPaddle 1;}
// ************************************************************************* //1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: v1906 || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class dictionary; object blockMeshDict;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 1;
vertices( ( 0.0 0.0 0.0) ( 30.0 0.0 0.0) ( 30.0 0.04 0.0) ( 0.0 0.04 0.0) ( 0.0 0.0 0.7) ( 30.0 0.0 0.7) ( 30.0 0.04 0.7) ( 0.0 0.04 0.7));
blocks( hex (0 1 2 3 4 5 6 7) (750 1 70) simpleGrading (1 1 1));
edges();
boundary( inlet { type patch; faces ( (0 4 7 3) ); } outlet { type patch; faces ( (1 5 6 2) ); } ground { type wall; faces ( (0 1 2 3) ); } top { type patch; faces ( (4 5 6 7) ); } sides { type empty; faces ( (0 1 5 4) (3 2 6 7) ); });
mergePatchPairs();
// ************************************************************************* //raw/stokes_wave/t27/system/fvSchemesAdded+53
raw/stokes_wave/t27/system/fvSolutionAdded+77
raw/stokes_wave/t27/system/setFieldsDictAdded+36
raw/stokes_wave/t28/0/UAdded+54
raw/stokes_wave/t28/0/U.templateAdded+54
raw/stokes_wave/t28/0/alpha.waterAdded
raw/stokes_wave/t28/0/alpha.water.templateAdded+52
raw/stokes_wave/t28/0/p_rghAdded+54
raw/stokes_wave/t28/AllcleanAdded+7
raw/stokes_wave/t28/AllrunAdded+15
raw/stokes_wave/t28/constant/gAdded+22
raw/stokes_wave/t28/constant/polyMesh/boundaryAdded+54
raw/stokes_wave/t28/constant/polyMesh/facesAdded
raw/stokes_wave/t28/constant/polyMesh/neighbourAdded
raw/stokes_wave/t28/constant/polyMesh/ownerAdded
raw/stokes_wave/t28/constant/polyMesh/pointsAdded
raw/stokes_wave/t28/constant/transportPropertiesAdded+37
raw/stokes_wave/t28/constant/turbulencePropertiesAdded+20
raw/stokes_wave/t28/constant/wavePropertiesAdded+47
raw/stokes_wave/t28/system/blockMeshDictAdded+89