mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: finiteArea doc and style updates
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -39,6 +39,7 @@ The available solvers are grouped into the following categories:
|
|||||||
- \ref grpLagrangianSolvers
|
- \ref grpLagrangianSolvers
|
||||||
- \ref grpMultiphaseSolvers
|
- \ref grpMultiphaseSolvers
|
||||||
- \ref grpStressAnalysisSolvers
|
- \ref grpStressAnalysisSolvers
|
||||||
|
- \ref grpFiniteAreaSolvers
|
||||||
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -34,4 +34,10 @@ License
|
|||||||
This group contains moving mesh solvers solvers
|
This group contains moving mesh solvers solvers
|
||||||
@}
|
@}
|
||||||
|
|
||||||
|
\defgroup grpFiniteAreaSolvers Finite area solvers
|
||||||
|
@{
|
||||||
|
\ingroup grpSolvers
|
||||||
|
This group contains finite area solvers
|
||||||
|
@}
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|||||||
@ -26,6 +26,9 @@ License
|
|||||||
Application
|
Application
|
||||||
liquidFilmFoam
|
liquidFilmFoam
|
||||||
|
|
||||||
|
Group
|
||||||
|
grpFiniteAreaSolvers
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Transient solver for incompressible, laminar flow of Newtonian fluids in
|
Transient solver for incompressible, laminar flow of Newtonian fluids in
|
||||||
liquid film formulation.
|
liquid film formulation.
|
||||||
@ -148,6 +151,8 @@ int main(int argc, char *argv[])
|
|||||||
<< nl << endl;
|
<< nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Info<< "End\n" << endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,9 @@ License
|
|||||||
Application
|
Application
|
||||||
surfactantFoam for sphere transport
|
surfactantFoam for sphere transport
|
||||||
|
|
||||||
|
Group
|
||||||
|
grpFiniteAreaSolvers
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Passive scalar transport equation solver on a sphere
|
Passive scalar transport equation solver on a sphere
|
||||||
|
|
||||||
@ -64,7 +67,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
CsEqn.solve();
|
CsEqn.solve();
|
||||||
|
|
||||||
if (runTime.outputTime())
|
if (runTime.writeTime())
|
||||||
{
|
{
|
||||||
vsm.mapToVolume(Cs, Cvf.boundaryFieldRef());
|
vsm.mapToVolume(Cs, Cvf.boundaryFieldRef());
|
||||||
|
|
||||||
@ -79,6 +82,8 @@ int main(int argc, char *argv[])
|
|||||||
<< nl << endl;
|
<< nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Info<< "End\n" << endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ Application
|
|||||||
surfactantFoam
|
surfactantFoam
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpBasicSolvers
|
grpFiniteAreaSolvers
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Passive scalar transport equation solver.
|
Passive scalar transport equation solver.
|
||||||
@ -90,7 +90,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
CsEqn.solve();
|
CsEqn.solve();
|
||||||
|
|
||||||
if (runTime.outputTime())
|
if (runTime.writeTime())
|
||||||
{
|
{
|
||||||
vsm.mapToVolume(Cs, Cvf.boundaryFieldRef());
|
vsm.mapToVolume(Cs, Cvf.boundaryFieldRef());
|
||||||
|
|
||||||
@ -105,6 +105,8 @@ int main(int argc, char *argv[])
|
|||||||
<< nl << endl;
|
<< nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Info<< "End\n" << endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -70,6 +70,7 @@ public:
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#include "addRegionOption.H"
|
#include "addRegionOption.H"
|
||||||
|
argList::noParallel();
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
@ -94,23 +95,21 @@ int main(int argc, char *argv[])
|
|||||||
faMeshDefinition.lookup("polyMeshPatches")
|
faMeshDefinition.lookup("polyMeshPatches")
|
||||||
);
|
);
|
||||||
|
|
||||||
dictionary bndDict = faMeshDefinition.subDict("boundary");
|
const dictionary& bndDict = faMeshDefinition.subDict("boundary");
|
||||||
|
|
||||||
wordList faPatchNames = bndDict.toc();
|
const wordList faPatchNames(bndDict.toc());
|
||||||
|
|
||||||
List<faPatchData> faPatches(faPatchNames.size()+1);
|
List<faPatchData> faPatches(faPatchNames.size()+1);
|
||||||
|
|
||||||
forAll(faPatchNames, patchI)
|
forAll(faPatchNames, patchI)
|
||||||
{
|
{
|
||||||
dictionary curPatchDict =
|
const dictionary& curPatchDict = bndDict.subDict(faPatchNames[patchI]);
|
||||||
bndDict.subDict(faPatchNames[patchI]);
|
|
||||||
|
|
||||||
faPatches[patchI].name_ = faPatchNames[patchI];
|
faPatches[patchI].name_ = faPatchNames[patchI];
|
||||||
|
|
||||||
faPatches[patchI].type_ =
|
faPatches[patchI].type_ = word(curPatchDict.lookup("type"));
|
||||||
word(curPatchDict.lookup("type"));
|
|
||||||
|
|
||||||
word ownName = curPatchDict.lookup("ownerPolyPatch");
|
const word ownName = curPatchDict.lookup("ownerPolyPatch");
|
||||||
|
|
||||||
faPatches[patchI].ownPolyPatchID_ =
|
faPatches[patchI].ownPolyPatchID_ =
|
||||||
mesh.boundaryMesh().findPatchID(ownName);
|
mesh.boundaryMesh().findPatchID(ownName);
|
||||||
@ -122,7 +121,7 @@ int main(int argc, char *argv[])
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
word neiName = curPatchDict.lookup("neighbourPolyPatch");
|
const word neiName = curPatchDict.lookup("neighbourPolyPatch");
|
||||||
|
|
||||||
faPatches[patchI].ngbPolyPatchID_ =
|
faPatches[patchI].ngbPolyPatchID_ =
|
||||||
mesh.boundaryMesh().findPatchID(neiName);
|
mesh.boundaryMesh().findPatchID(neiName);
|
||||||
@ -169,7 +168,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
label size = mesh.boundaryMesh()[patchIDs[patchI]].size();
|
label size = mesh.boundaryMesh()[patchIDs[patchI]].size();
|
||||||
|
|
||||||
for(label i = 0; i < size; i++)
|
for (label i = 0; i < size; ++i)
|
||||||
{
|
{
|
||||||
faceLabels[++faceI] = start + i;
|
faceLabels[++faceI] = start + i;
|
||||||
}
|
}
|
||||||
@ -214,7 +213,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
labelList bndEdgeFaPatchIDs(nTotalEdges - nInternalEdges, -1);
|
labelList bndEdgeFaPatchIDs(nTotalEdges - nInternalEdges, -1);
|
||||||
|
|
||||||
for (label edgeI = nInternalEdges; edgeI < nTotalEdges; edgeI++)
|
for (label edgeI = nInternalEdges; edgeI < nTotalEdges; ++edgeI)
|
||||||
{
|
{
|
||||||
label curMeshEdge = meshEdges[edgeI];
|
label curMeshEdge = meshEdges[edgeI];
|
||||||
|
|
||||||
@ -234,7 +233,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(label pI = 0; pI < faPatches.size() - 1; pI++)
|
for (label pI = 0; pI < faPatches.size() - 1; ++pI)
|
||||||
{
|
{
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
@ -257,7 +256,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
// Set edgeLabels for each faPatch
|
// Set edgeLabels for each faPatch
|
||||||
for(label pI=0; pI<(faPatches.size()-1); pI++)
|
for (label pI=0; pI<(faPatches.size()-1); ++pI)
|
||||||
{
|
{
|
||||||
SLList<label> tmpList;
|
SLList<label> tmpList;
|
||||||
|
|
||||||
@ -295,7 +294,7 @@ int main(int argc, char *argv[])
|
|||||||
// Add good patches to faMesh
|
// Add good patches to faMesh
|
||||||
SLList<faPatch*> faPatchLst;
|
SLList<faPatch*> faPatchLst;
|
||||||
|
|
||||||
for(label pI = 0; pI < faPatches.size(); pI++)
|
for (label pI = 0; pI < faPatches.size(); ++pI)
|
||||||
{
|
{
|
||||||
faPatches[pI].dict_.add("type", faPatches[pI].type_);
|
faPatches[pI].dict_.add("type", faPatches[pI].type_);
|
||||||
faPatches[pI].dict_.add("edgeLabels", faPatches[pI].edgeLabels_);
|
faPatches[pI].dict_.add("edgeLabels", faPatches[pI].edgeLabels_);
|
||||||
|
|||||||
Reference in New Issue
Block a user