From 974746246f34787bcc1eb7e5c281a96c6ba2abb6 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 13 Oct 2010 09:45:45 +0100 Subject: [PATCH] Added demonstration code for dynamic mesh --- .../icoDyMFoam/.svn/all-wcprops | 35 +++ .../icoDyMFoam/.svn/dir-prop-base | 7 + .../incompressible/icoDyMFoam/.svn/entries | 201 ++++++++++++++++++ .../incompressible/icoDyMFoam/.svn/format | 1 + .../icoDyMFoam/.svn/prop-base/UEqn.H.svn-base | 5 + .../.svn/prop-base/correctPhi.H.svn-base | 5 + .../.svn/prop-base/createFields.H.svn-base | 5 + .../.svn/prop-base/icoDyMFoam.C.svn-base | 5 + .../icoDyMFoam/.svn/text-base/UEqn.H.svn-base | 11 + .../.svn/text-base/correctPhi.H.svn-base | 47 ++++ .../.svn/text-base/createFields.H.svn-base | 90 ++++++++ .../.svn/text-base/icoDyMFoam.C.svn-base | 144 +++++++++++++ .../.svn/text-base/readControls.H.svn-base | 14 ++ .../icoDyMFoam/Make/.svn/all-wcprops | 17 ++ .../icoDyMFoam/Make/.svn/dir-prop-base | 9 + .../icoDyMFoam/Make/.svn/entries | 96 +++++++++ .../icoDyMFoam/Make/.svn/format | 1 + .../Make/.svn/text-base/files.svn-base | 3 + .../Make/.svn/text-base/options.svn-base | 13 ++ .../incompressible/icoDyMFoam/Make/files | 3 + .../incompressible/icoDyMFoam/Make/options | 13 ++ .../solvers/incompressible/icoDyMFoam/UEqn.H | 11 + .../incompressible/icoDyMFoam/correctPhi.H | 47 ++++ .../incompressible/icoDyMFoam/createFields.H | 90 ++++++++ .../incompressible/icoDyMFoam/icoDyMFoam.C | 149 +++++++++++++ .../incompressible/icoDyMFoam/readControls.H | 14 ++ 26 files changed, 1036 insertions(+) create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/all-wcprops create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/dir-prop-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/entries create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/format create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/UEqn.H.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/correctPhi.H.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/createFields.H.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/icoDyMFoam.C.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/text-base/UEqn.H.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/text-base/correctPhi.H.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/text-base/createFields.H.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/text-base/icoDyMFoam.C.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/.svn/text-base/readControls.H.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/Make/.svn/all-wcprops create mode 100644 applications/solvers/incompressible/icoDyMFoam/Make/.svn/dir-prop-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/Make/.svn/entries create mode 100644 applications/solvers/incompressible/icoDyMFoam/Make/.svn/format create mode 100644 applications/solvers/incompressible/icoDyMFoam/Make/.svn/text-base/files.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/Make/.svn/text-base/options.svn-base create mode 100644 applications/solvers/incompressible/icoDyMFoam/Make/files create mode 100644 applications/solvers/incompressible/icoDyMFoam/Make/options create mode 100644 applications/solvers/incompressible/icoDyMFoam/UEqn.H create mode 100644 applications/solvers/incompressible/icoDyMFoam/correctPhi.H create mode 100644 applications/solvers/incompressible/icoDyMFoam/createFields.H create mode 100644 applications/solvers/incompressible/icoDyMFoam/icoDyMFoam.C create mode 100644 applications/solvers/incompressible/icoDyMFoam/readControls.H diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/all-wcprops b/applications/solvers/incompressible/icoDyMFoam/.svn/all-wcprops new file mode 100644 index 000000000..bceca7b2a --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/all-wcprops @@ -0,0 +1,35 @@ +K 25 +svn:wc:ra_dav:version-url +V 113 +/svnroot/openfoam-extend/!svn/ver/1591/trunk/Core/OpenFOAM-1.5-dev/applications/solvers/incompressible/icoDyMFoam +END +createFields.H +K 25 +svn:wc:ra_dav:version-url +V 127 +/svnroot/openfoam-extend/!svn/ver/915/trunk/Core/OpenFOAM-1.5-dev/applications/solvers/incompressible/icoDyMFoam/createFields.H +END +readControls.H +K 25 +svn:wc:ra_dav:version-url +V 127 +/svnroot/openfoam-extend/!svn/ver/915/trunk/Core/OpenFOAM-1.5-dev/applications/solvers/incompressible/icoDyMFoam/readControls.H +END +correctPhi.H +K 25 +svn:wc:ra_dav:version-url +V 125 +/svnroot/openfoam-extend/!svn/ver/981/trunk/Core/OpenFOAM-1.5-dev/applications/solvers/incompressible/icoDyMFoam/correctPhi.H +END +icoDyMFoam.C +K 25 +svn:wc:ra_dav:version-url +V 126 +/svnroot/openfoam-extend/!svn/ver/1591/trunk/Core/OpenFOAM-1.5-dev/applications/solvers/incompressible/icoDyMFoam/icoDyMFoam.C +END +UEqn.H +K 25 +svn:wc:ra_dav:version-url +V 119 +/svnroot/openfoam-extend/!svn/ver/912/trunk/Core/OpenFOAM-1.5-dev/applications/solvers/incompressible/icoDyMFoam/UEqn.H +END diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/dir-prop-base b/applications/solvers/incompressible/icoDyMFoam/.svn/dir-prop-base new file mode 100644 index 000000000..3b7a2aa5a --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/dir-prop-base @@ -0,0 +1,7 @@ +K 10 +svn:ignore +V 16 +lnInclude +*.dep + +END diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/entries b/applications/solvers/incompressible/icoDyMFoam/.svn/entries new file mode 100644 index 000000000..a302fbbf2 --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/entries @@ -0,0 +1,201 @@ +9 + +dir +1730 +https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev/applications/solvers/incompressible/icoDyMFoam +https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend + + + +2010-01-20T10:44:39.337304Z +1591 +hjasak +has-props + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +e4e07f05-0c2f-0410-a05a-b8ba57e0c909 + +createFields.H +file + + + + +2009-08-11T21:05:38.000000Z +00e915519b705cad0056a257a3fd2a92 +2009-01-20T00:30:44.740688Z +915 +hjasak +has-props + + + + + + + + + + + + + + + + + + + + +1874 + +readControls.H +file + + + + +2009-08-11T21:05:38.000000Z +eea361849937e2d7f8dcb00e72a34c00 +2009-01-20T00:30:44.740688Z +915 +hjasak + + + + + + + + + + + + + + + + + + + + + +362 + +correctPhi.H +file + + + + +2009-08-11T21:05:38.000000Z +074a2d4fbd974ca63d4207e2d816104f +2009-02-06T16:17:03.879174Z +981 +hjasak +has-props + + + + + + + + + + + + + + + + + + + + +1048 + +icoDyMFoam.C +file + + + + +2009-12-13T23:44:56.000000Z +97fc42064b2254262c779f71eabc4991 +2010-01-20T10:44:39.337304Z +1591 +hjasak +has-props + + + + + + + + + + + + + + + + + + + + +4049 + +Make +dir + +UEqn.H +file + + + + +2009-08-11T21:05:38.000000Z +84ccfd4a6cf96222b86f76eaacb9f17c +2008-06-19T13:53:26.834514Z +684 +hjasak +has-props + + + + + + + + + + + + + + + + + + + + +190 + diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/format b/applications/solvers/incompressible/icoDyMFoam/.svn/format new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/format @@ -0,0 +1 @@ +9 diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/UEqn.H.svn-base b/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/UEqn.H.svn-base new file mode 100644 index 000000000..92c8ad747 --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/UEqn.H.svn-base @@ -0,0 +1,5 @@ +K 12 +svn:keywords +V 2 +Id +END diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/correctPhi.H.svn-base b/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/correctPhi.H.svn-base new file mode 100644 index 000000000..92c8ad747 --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/correctPhi.H.svn-base @@ -0,0 +1,5 @@ +K 12 +svn:keywords +V 2 +Id +END diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/createFields.H.svn-base b/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/createFields.H.svn-base new file mode 100644 index 000000000..92c8ad747 --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/createFields.H.svn-base @@ -0,0 +1,5 @@ +K 12 +svn:keywords +V 2 +Id +END diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/icoDyMFoam.C.svn-base b/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/icoDyMFoam.C.svn-base new file mode 100644 index 000000000..92c8ad747 --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/prop-base/icoDyMFoam.C.svn-base @@ -0,0 +1,5 @@ +K 12 +svn:keywords +V 2 +Id +END diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/text-base/UEqn.H.svn-base b/applications/solvers/incompressible/icoDyMFoam/.svn/text-base/UEqn.H.svn-base new file mode 100644 index 000000000..faf508468 --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/text-base/UEqn.H.svn-base @@ -0,0 +1,11 @@ + fvVectorMatrix UEqn + ( + fvm::ddt(U) + + fvm::div(phi, U) + - fvm::laplacian(nu, U) + ); + + if (momentumPredictor) + { + solve(UEqn == -fvc::grad(p)); + } diff --git a/applications/solvers/incompressible/icoDyMFoam/.svn/text-base/correctPhi.H.svn-base b/applications/solvers/incompressible/icoDyMFoam/.svn/text-base/correctPhi.H.svn-base new file mode 100644 index 000000000..69978f0e6 --- /dev/null +++ b/applications/solvers/incompressible/icoDyMFoam/.svn/text-base/correctPhi.H.svn-base @@ -0,0 +1,47 @@ +{ + wordList pcorrTypes(p.boundaryField().types()); + + for (label i=0; i