From 49006b6ef6a724f8f50003182a202d0298176cd9 Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Sat, 29 Jan 2011 14:58:47 +0100 Subject: [PATCH 1/5] Moving surfactantFoam to tutorials because of its case-specific implementation --HG-- branch : proposal/famTutorialReorganizationBranch rename : applications/solvers/surfaceTracking/surfactantFoam/Make/files => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/files rename : applications/solvers/surfaceTracking/surfactantFoam/Make/options => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/options rename : applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaFields.H rename : applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaMesh.H rename : applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createVolFields.H rename : applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/surfactantFoam.C rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cs => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cs rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cvf => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cvf rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/U => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/U rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allclean => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allclean rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allrun => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/faMesh/faMeshDefinition => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/faMesh/faMeshDefinition rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/boundary => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/boundary rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/cells => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/cells rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/faces => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/faces rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/neighbour => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/neighbour rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/owner => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/owner rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/points => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/points rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/controlDict => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/controlDict rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/faSchemes => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/faSchemes rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/faSolution => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/faSolution rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/fvSchemes => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/fvSchemes rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/fvSolution => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/fvSolution --- .../solvers/surfaceTracking/surfactantFoam/Make/files | 3 --- .../sphereTransport/sphereSurfactantFoam/Make/files | 3 +++ .../sphereTransport/sphereSurfactantFoam}/Make/options | 0 .../sphereTransport/sphereSurfactantFoam}/createFaFields.H | 0 .../sphereTransport/sphereSurfactantFoam}/createFaMesh.H | 0 .../sphereTransport/sphereSurfactantFoam}/createVolFields.H | 0 .../sphereTransport/sphereSurfactantFoam}/surfactantFoam.C | 0 .../sphereTransport/{ => sphereTransport}/0/Cs | 0 .../sphereTransport/{ => sphereTransport}/0/Cvf | 5 +++-- .../surfactantFoam/sphereTransport/{ => sphereTransport}/0/U | 5 +++-- .../sphereTransport/{ => sphereTransport}/Allclean | 0 .../sphereTransport/{ => sphereTransport}/Allrun | 2 +- .../{ => sphereTransport}/constant/faMesh/faMeshDefinition | 0 .../{ => sphereTransport}/constant/polyMesh/boundary | 0 .../{ => sphereTransport}/constant/polyMesh/cells | 0 .../{ => sphereTransport}/constant/polyMesh/faces | 0 .../{ => sphereTransport}/constant/polyMesh/neighbour | 0 .../{ => sphereTransport}/constant/polyMesh/owner | 0 .../{ => sphereTransport}/constant/polyMesh/points | 0 .../sphereTransport/{ => sphereTransport}/system/controlDict | 0 .../sphereTransport/{ => sphereTransport}/system/faSchemes | 0 .../sphereTransport/{ => sphereTransport}/system/faSolution | 0 .../sphereTransport/{ => sphereTransport}/system/fvSchemes | 0 .../sphereTransport/{ => sphereTransport}/system/fvSolution | 0 24 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 applications/solvers/surfaceTracking/surfactantFoam/Make/files create mode 100644 tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/files rename {applications/solvers/surfaceTracking/surfactantFoam => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam}/Make/options (100%) rename {applications/solvers/surfaceTracking/surfactantFoam => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam}/createFaFields.H (100%) rename {applications/solvers/surfaceTracking/surfactantFoam => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam}/createFaMesh.H (100%) rename {applications/solvers/surfaceTracking/surfactantFoam => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam}/createVolFields.H (100%) rename {applications/solvers/surfaceTracking/surfactantFoam => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam}/surfactantFoam.C (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/0/Cs (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/0/Cvf (98%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/0/U (99%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/Allclean (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/Allrun (79%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/constant/faMesh/faMeshDefinition (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/constant/polyMesh/boundary (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/constant/polyMesh/cells (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/constant/polyMesh/faces (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/constant/polyMesh/neighbour (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/constant/polyMesh/owner (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/constant/polyMesh/points (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/system/controlDict (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/system/faSchemes (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/system/faSolution (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/system/fvSchemes (100%) rename tutorials/surfaceTracking/surfactantFoam/sphereTransport/{ => sphereTransport}/system/fvSolution (100%) diff --git a/applications/solvers/surfaceTracking/surfactantFoam/Make/files b/applications/solvers/surfaceTracking/surfactantFoam/Make/files deleted file mode 100644 index b4086fd82..000000000 --- a/applications/solvers/surfaceTracking/surfactantFoam/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -surfactantFoam.C - -EXE = $(FOAM_APPBIN)/surfactantFoam diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/files b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/files new file mode 100644 index 000000000..574a49703 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/files @@ -0,0 +1,3 @@ +surfactantFoam.C + +EXE = $(FOAM_USER_APPBIN)/sphereSurfactantFoam diff --git a/applications/solvers/surfaceTracking/surfactantFoam/Make/options b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/options similarity index 100% rename from applications/solvers/surfaceTracking/surfactantFoam/Make/options rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/options diff --git a/applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaFields.H similarity index 100% rename from applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaFields.H diff --git a/applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaMesh.H similarity index 100% rename from applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaMesh.H diff --git a/applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createVolFields.H similarity index 100% rename from applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createVolFields.H diff --git a/applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/surfactantFoam.C similarity index 100% rename from applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/surfactantFoam.C diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cs b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cs similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cs rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cs diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cvf b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cvf similarity index 98% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cvf rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cvf index fee4e183c..bf24a7928 100644 --- a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cvf +++ b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cvf @@ -1,6 +1,6 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | -| \\ / F ield | OpenFOAM Extend Project: Open Source CFD | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | | \\ / O peration | Version: 1.6-ext | | \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | @@ -24,7 +24,7 @@ boundaryField outer { type calculated; - value nonuniform List + value nonuniform List 600 ( 0.348943 @@ -632,4 +632,5 @@ boundaryField } } + // ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/U b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/U similarity index 99% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/U rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/U index 0dcb84c80..927bc1cc4 100644 --- a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/U +++ b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/U @@ -1,6 +1,6 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | -| \\ / F ield | OpenFOAM Extend Project: Open Source CFD | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | | \\ / O peration | Version: 1.6-ext | | \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | @@ -24,7 +24,7 @@ boundaryField outer { type calculated; - value nonuniform List + value nonuniform List 600 ( (-0.144039 -0.122998 0.0114965) @@ -632,4 +632,5 @@ boundaryField } } + // ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allclean b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allclean similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allclean rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allclean diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allrun b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun similarity index 79% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allrun rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun index b3bc011b4..8efec031c 100755 --- a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allrun +++ b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun @@ -2,7 +2,7 @@ # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application="surfactantFoam" +application="sphereSurfactantFoam" runApplication makeFaMesh runApplication $application diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/faMesh/faMeshDefinition b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/faMesh/faMeshDefinition similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/faMesh/faMeshDefinition rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/faMesh/faMeshDefinition diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/boundary b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/boundary similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/boundary rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/boundary diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/cells b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/cells similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/cells rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/cells diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/faces b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/faces similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/faces rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/faces diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/neighbour b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/neighbour similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/neighbour rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/neighbour diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/owner b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/owner similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/owner rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/owner diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/points b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/points similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/points rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/points diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/controlDict b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/controlDict similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/controlDict rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/controlDict diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/faSchemes b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/faSchemes similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/faSchemes rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/faSchemes diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/faSolution b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/faSolution similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/faSolution rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/faSolution diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/fvSchemes b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/fvSchemes similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/fvSchemes rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/fvSchemes diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/fvSolution b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/fvSolution similarity index 100% rename from tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/fvSolution rename to tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/fvSolution From 2b6b5ac90b4110c01ff342c133418fe2fb1c17f7 Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Sat, 29 Jan 2011 15:01:28 +0100 Subject: [PATCH 2/5] Tutorial runs completely selfcontained --HG-- branch : proposal/famTutorialReorganizationBranch --- .../surfactantFoam/sphereTransport/sphereTransport/Allrun | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun index 8efec031c..feb5e2e51 100755 --- a/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun +++ b/tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun @@ -4,5 +4,7 @@ application="sphereSurfactantFoam" +wmake ../$application + runApplication makeFaMesh runApplication $application From c613c505d3850d9ed2f1cca29326ce16af7086ad Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Sat, 29 Jan 2011 15:17:55 +0100 Subject: [PATCH 3/5] Version of surfactantFoam that is case-independent and a simple tutorial for it --HG-- branch : proposal/famTutorialReorganizationBranch rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/files => applications/solvers/surfaceTracking/surfactantFoam/Make/files rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/options => applications/solvers/surfaceTracking/surfactantFoam/Make/options rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaFields.H => applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaMesh.H => applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createVolFields.H => applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/surfactantFoam.C => applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C --- .../surfaceTracking/surfactantFoam/Make/files | 3 + .../surfactantFoam/Make/options | 9 ++ .../surfactantFoam/createFaFields.H | 63 ++++++++++++++ .../surfactantFoam/createFaMesh.H | 2 + .../surfactantFoam/createVolFields.H | 36 ++++++++ .../surfactantFoam/surfactantFoam.C | 83 +++++++++++++++++++ .../surfactantFoam/planeTransport/0/Cs | 41 +++++++++ .../surfactantFoam/planeTransport/0/Cvf | 52 ++++++++++++ .../surfactantFoam/planeTransport/0/U | 52 ++++++++++++ .../surfactantFoam/planeTransport/0/Us | 36 ++++++++ .../surfactantFoam/planeTransport/Allclean | 7 ++ .../surfactantFoam/planeTransport/Allrun | 9 ++ .../constant/faMesh/faMeshDefinition | 40 +++++++++ .../constant/polyMesh/blockMeshDict | 69 +++++++++++++++ .../planeTransport/constant/polyMesh/boundary | 52 ++++++++++++ .../constant/transportProperties | 21 +++++ .../planeTransport/system/controlDict | 48 +++++++++++ .../planeTransport/system/faSchemes | 57 +++++++++++++ .../planeTransport/system/faSolution | 52 ++++++++++++ .../planeTransport/system/fvSchemes | 47 +++++++++++ .../planeTransport/system/fvSolution | 23 +++++ 21 files changed, 802 insertions(+) create mode 100644 applications/solvers/surfaceTracking/surfactantFoam/Make/files create mode 100644 applications/solvers/surfaceTracking/surfactantFoam/Make/options create mode 100644 applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H create mode 100644 applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H create mode 100644 applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H create mode 100644 applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Cs create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Cvf create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/0/U create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Us create mode 100755 tutorials/surfaceTracking/surfactantFoam/planeTransport/Allclean create mode 100755 tutorials/surfaceTracking/surfactantFoam/planeTransport/Allrun create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/faMesh/faMeshDefinition create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/polyMesh/blockMeshDict create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/polyMesh/boundary create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/transportProperties create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/system/controlDict create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/system/faSchemes create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/system/faSolution create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/system/fvSchemes create mode 100644 tutorials/surfaceTracking/surfactantFoam/planeTransport/system/fvSolution diff --git a/applications/solvers/surfaceTracking/surfactantFoam/Make/files b/applications/solvers/surfaceTracking/surfactantFoam/Make/files new file mode 100644 index 000000000..b4086fd82 --- /dev/null +++ b/applications/solvers/surfaceTracking/surfactantFoam/Make/files @@ -0,0 +1,3 @@ +surfactantFoam.C + +EXE = $(FOAM_APPBIN)/surfactantFoam diff --git a/applications/solvers/surfaceTracking/surfactantFoam/Make/options b/applications/solvers/surfaceTracking/surfactantFoam/Make/options new file mode 100644 index 000000000..05015b82b --- /dev/null +++ b/applications/solvers/surfaceTracking/surfactantFoam/Make/options @@ -0,0 +1,9 @@ +EXE_INC = \ + -I$(LIB_SRC)/finiteArea/lnInclude \ + -I$(LIB_SRC)/finiteVolume/lnInclude \ + -I$(LIB_SRC)/cfdTools/general/lnInclude + +EXE_LIBS = \ + -lfiniteArea \ + -lfiniteVolume \ + -llduSolvers diff --git a/applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H b/applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H new file mode 100644 index 000000000..89d8da2f7 --- /dev/null +++ b/applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H @@ -0,0 +1,63 @@ +Info << "Reading field Cs" << endl; +areaScalarField Cs +( + IOobject + ( + "Cs", + runTime.timeName(), + mesh, + IOobject::MUST_READ, + IOobject::AUTO_WRITE + ), + aMesh +); + +Info<< "Reading transportProperties\n" << endl; + +IOdictionary transportProperties +( + IOobject + ( + "transportProperties", + runTime.constant(), + mesh, + IOobject::MUST_READ, + IOobject::NO_WRITE + ) +); + + +Info<< "Reading diffusivity D\n" << endl; + +dimensionedScalar Ds +( + transportProperties.lookup("Ds") +); + +areaVectorField Us +( + IOobject + ( + "Us", + runTime.timeName(), + mesh, + IOobject::MUST_READ, + IOobject::NO_WRITE + ), + aMesh +); + + +edgeScalarField phis +( + IOobject + ( + "phis", + runTime.timeName(), + mesh, + IOobject::NO_READ, + IOobject::NO_WRITE + ), + linearEdgeInterpolate(Us) & aMesh.Le() +); + diff --git a/applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H b/applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H new file mode 100644 index 000000000..905c8e740 --- /dev/null +++ b/applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H @@ -0,0 +1,2 @@ + // Create Finite Area mesh + faMesh aMesh(mesh); diff --git a/applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H b/applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H new file mode 100644 index 000000000..72358cef4 --- /dev/null +++ b/applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H @@ -0,0 +1,36 @@ + // Create volume-to surface mapping object + volSurfaceMapping vsm(aMesh); + + volScalarField Cvf + ( + IOobject + ( + "Cvf", + runTime.timeName(), + mesh, + IOobject::NO_READ, + IOobject::AUTO_WRITE + ), + mesh, + dimensionedScalar("0", dimless/dimLength, 0) + ); + + vsm.mapToVolume(Cs, Cvf.boundaryField()); + Cvf.write(); + + volVectorField U + ( + IOobject + ( + "U", + runTime.timeName(), + mesh, + IOobject::NO_READ, + IOobject::AUTO_WRITE + ), + mesh, + dimensionedVector("zero", dimVelocity, vector::zero) + ); + + vsm.mapToVolume(Us, U.boundaryField()); + U.write(); diff --git a/applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C b/applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C new file mode 100644 index 000000000..d8ebbf960 --- /dev/null +++ b/applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C @@ -0,0 +1,83 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2004-2007 Z. Tukovic and H. Jasak + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +Application + finiteAreaFoam + +Description + +\*---------------------------------------------------------------------------*/ + +#include "fvCFD.H" +#include "faCFD.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +int main(int argc, char *argv[]) +{ +# include "setRootCase.H" +# include "createTime.H" +# include "createMesh.H" + +# include "createFaMesh.H" +# include "createFaFields.H" +# include "createVolFields.H" + + Info<< "Total mass of surfactant: " + << sum(Cs.internalField()*aMesh.S()) << endl; + + Info << "\nStarting time loop\n" << endl; + + for (runTime++; !runTime.end(); runTime++) + { + Info << "Time = " << runTime.value() << endl; + + faScalarMatrix CsEqn + ( + fam::ddt(Cs) + + fam::div(phis, Cs) + - fam::laplacian(Ds, Cs) + ); + + CsEqn.solve(); + + if (runTime.outputTime()) + { + vsm.mapToVolume(Cs, Cvf.boundaryField()); + + runTime.write(); + } + + Info<< "Total mass of surfactant: " + << sum(Cs.internalField()*aMesh.S()) << endl; + + Info << "ExecutionTime = " + << scalar(runTime.elapsedCpuTime()) + << " s\n" << endl << endl; + } + + return(0); +} + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Cs b/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Cs new file mode 100644 index 000000000..673e7998a --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Cs @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class areaScalarField; + location "0"; + object Cs; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -2 0 0 0 0 0]; + +internalField uniform 0; + +referenceLevel 0; + +boundaryField +{ + inlet { + type fixedValue; + value uniform 1; + } + outlet { + type inletOutlet; + value uniform 1; + phi phis; + inletValue uniform 0; + } + bound { + type symmetryPlane; + } +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Cvf b/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Cvf new file mode 100644 index 000000000..e604c98bd --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Cvf @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object Cvf; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 -1 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + bound + { + type calculated; + value uniform 0; + } + outlet + { + type calculated; + value uniform 0; + } + bottom + { + type calculated; + value uniform 0; + } + top + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/U b/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/U new file mode 100644 index 000000000..81270be90 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/U @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ 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 calculated; + value uniform (0 0 0); + } + bound + { + type calculated; + value uniform (0 0 0); + } + outlet + { + type calculated; + value uniform (0 0 0); + } + bottom + { + type calculated; + value uniform (0 0 0); + } + top + { + type calculated; + value uniform (0.05 0 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Us b/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Us new file mode 100644 index 000000000..f04eb7523 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/0/Us @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class areaVectorField; + location "0"; + object Us; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0.05 0 0); + +boundaryField +{ + inlet { + type fixedValue; + value $internalField; + } + outlet { + type zeroGradient; + } + bound { + type symmetryPlane; + } +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/Allclean b/tutorials/surfaceTracking/surfactantFoam/planeTransport/Allclean new file mode 100755 index 000000000..f9c09b1ff --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/Allclean @@ -0,0 +1,7 @@ +#!/bin/sh + +# Source tutorial clean functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cleanTimeDirectories +cleanFaMesh \ No newline at end of file diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/Allrun b/tutorials/surfaceTracking/surfactantFoam/planeTransport/Allrun new file mode 100755 index 000000000..cf07ecbfd --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/Allrun @@ -0,0 +1,9 @@ +#!/bin/sh +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +application="surfactantFoam" + +runApplication blockMesh +runApplication makeFaMesh +runApplication $application diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/faMesh/faMeshDefinition b/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/faMesh/faMeshDefinition new file mode 100644 index 000000000..a9ebd9c77 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/faMesh/faMeshDefinition @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object faMeshDefinition; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +polyMeshPatches 1( top ); + +boundary +{ + inlet { + type patch; + ownerPolyPatch top; + neighbourPolyPatch inlet; + } + outlet { + type patch; + ownerPolyPatch top; + neighbourPolyPatch outlet; + } + bound { + type symmetryPlane; + ownerPolyPatch top; + neighbourPolyPatch bound; + } +} + + +// ************************************************************************** // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/polyMesh/blockMeshDict b/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/polyMesh/blockMeshDict new file mode 100644 index 000000000..060e55588 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/polyMesh/blockMeshDict @@ -0,0 +1,69 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.5 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 0.1; + +vertices +( + (0 0 0) + (3 0 0) + (3 1 0) + (0 1 0) + (0 0 0.1) + (3 0 0.1) + (3 1 0.1) + (0 1 0.1) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (60 20 1) simpleGrading (1 1 1) +); + +edges +( +); + +patches +( + patch inlet + ( + (0 4 7 3) + ) + wall bound + ( + (3 7 6 2) + (1 5 4 0) + ) + patch outlet + ( + (2 6 5 1) + ) + patch bottom + ( + (0 3 2 1) + ) + patch top + ( + (4 5 6 7) + ) +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/polyMesh/boundary b/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/polyMesh/boundary new file mode 100644 index 000000000..bccc60e3a --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/polyMesh/boundary @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +5 +( + inlet + { + type patch; + nFaces 20; + startFace 2320; + } + bound + { + type wall; + nFaces 120; + startFace 2340; + } + outlet + { + type patch; + nFaces 20; + startFace 2460; + } + bottom + { + type patch; + nFaces 1200; + startFace 2480; + } + top + { + type patch; + nFaces 1200; + startFace 3680; + } +) + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/transportProperties b/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/transportProperties new file mode 100644 index 000000000..7df70c875 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/constant/transportProperties @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +Ds Ds [ 0 2 -1 0 0 0 0 ] 0.00001; + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/controlDict b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/controlDict new file mode 100644 index 000000000..226cf7c09 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/controlDict @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application surfactantFoam; + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 6; + +deltaT 0.1; + +writeControl runTime; + +writeInterval 0.2; + +purgeWrite 0; + +writeFormat ascii; + +writeCompression uncompressed; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +// ************************************************************************* // + + diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/faSchemes b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/faSchemes new file mode 100644 index 000000000..12070465a --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/faSchemes @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object faSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; + grad(p) Gauss linear; +} + +divSchemes +{ + default none; + div(phis,Cs) Gauss linear; +} + +laplacianSchemes +{ + default none; + laplacian(Ds,Cs) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + p; +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/faSolution b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/faSolution new file mode 100644 index 000000000..3ba6f6f69 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/faSolution @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object faSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + Cs + { + solver PBiCG; + preconditioner DILU; + minIter 0; + maxIter 2000; + tolerance 1e-06; + relTol 0; + } +} + +PISO +{ + nCorrectors 2; + nNonOrthogonalCorrectors 0; +} + +SIMPLE +{ + nTimeCorrectors 6; + nNonOrthogonalCorrectors 1; +} + +relaxationFactors +{ + p 0.7; + U 0.7; + k 0.7; + epsilon 0.7; + R 0.7; +} + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/fvSchemes b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/fvSchemes new file mode 100644 index 000000000..1b773257b --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/fvSchemes @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ +} + +gradSchemes +{ +} + +divSchemes +{ +} + +laplacianSchemes +{ +} + +interpolationSchemes +{ +} + +snGradSchemes +{ +} + +fluxRequired +{ +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/fvSolution b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/fvSolution new file mode 100644 index 000000000..a173d41c2 --- /dev/null +++ b/tutorials/surfaceTracking/surfactantFoam/planeTransport/system/fvSolution @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ +} + + +// ************************************************************************* // From e36fd33444729072195dc1646aa61d368759f010 Mon Sep 17 00:00:00 2001 From: Martin Beaudoin Date: Fri, 31 May 2013 00:31:18 -0400 Subject: [PATCH 4/5] .gitignore: blacklisting files subject to a DMCA complaint by ANSYS --- .gitignore | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index b6d81a490..013e5460d 100644 --- a/.gitignore +++ b/.gitignore @@ -86,4 +86,12 @@ etc/settings.csh etc/setteings.sh +# The following files are blacklisted because of a DMCA complaint by ANSYS. +src/lduSolvers/tools/PriorityArray.C +src/lduSolvers/tools/PriorityArray.H +src/lduSolvers/amg/amgPolicy/samgPolicy.C +src/lduSolvers/amg/amgPolicy/samgPolicy.H +src/lduSolvers/amg/amgPolicy/aamgPolicy.C +src/lduSolvers/amg/amgPolicy/aamgPolicy.H + # end-of-file From 3d957c67ab71d77086d1e54480357c3fbb7e2bbc Mon Sep 17 00:00:00 2001 From: Martin Beaudoin Date: Sun, 2 Jun 2013 09:11:26 -0400 Subject: [PATCH 5/5] Fixing compilation of lduSolvers following removal of files --- src/lduSolvers/Make/files | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lduSolvers/Make/files b/src/lduSolvers/Make/files index ab36ce6b1..7d891ced3 100644 --- a/src/lduSolvers/Make/files +++ b/src/lduSolvers/Make/files @@ -30,7 +30,5 @@ $(amg)/coarseAmgLevel.C amgPolicy = $(amg)/amgPolicy $(amgPolicy)/amgPolicy.C $(amgPolicy)/pamgPolicy.C -$(amgPolicy)/aamgPolicy.C -$(amgPolicy)/samgPolicy.C LIB = $(FOAM_LIBBIN)/liblduSolvers