Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
commit
b0f17432ee
@ -281,7 +281,7 @@
|
|||||||
to provide an in-line functionObject. E.g.
|
to provide an in-line functionObject. E.g.
|
||||||
#+BEGIN_SRC c++
|
#+BEGIN_SRC c++
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
pAverage
|
pAverage
|
||||||
{
|
{
|
||||||
functionObjectLibs ("libutilityFunctionObjects.so");
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
@ -293,7 +293,7 @@
|
|||||||
Info<<"p avg:" << average(p) << endl;
|
Info<<"p avg:" << average(p) << endl;
|
||||||
#};
|
#};
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
See also [[./doc/changes/dynamicCode.org]]
|
See also [[./doc/changes/dynamicCode.org]]
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
=functionObject=.
|
=functionObject=.
|
||||||
#+BEGIN_SRC c++
|
#+BEGIN_SRC c++
|
||||||
functions
|
functions
|
||||||
(
|
{
|
||||||
pAverage
|
pAverage
|
||||||
{
|
{
|
||||||
functionObjectLibs ("libutilityFunctionObjects.so");
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
@ -117,7 +117,7 @@
|
|||||||
Info<<"p avg:" << average(p) << endl;
|
Info<<"p avg:" << average(p) << endl;
|
||||||
#};
|
#};
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
This dynamic code framework uses the following entries
|
This dynamic code framework uses the following entries
|
||||||
+ =codeData=: declaration (in .H file) of local (null-constructable) data
|
+ =codeData=: declaration (in .H file) of local (null-constructable) data
|
||||||
|
@ -1215,7 +1215,7 @@ Foam::fileNameList Foam::dlLoaded()
|
|||||||
{
|
{
|
||||||
std::cout
|
std::cout
|
||||||
<< "dlLoaded()"
|
<< "dlLoaded()"
|
||||||
<< " : determined loaded libraries :" << libs.size() << endl;
|
<< " : determined loaded libraries :" << libs.size() << std::endl;
|
||||||
}
|
}
|
||||||
return libs;
|
return libs;
|
||||||
}
|
}
|
||||||
|
@ -213,6 +213,14 @@ void Foam::meshRefinement::updateIntersections(const labelList& changedFaces)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extend segments a bit
|
||||||
|
{
|
||||||
|
const vectorField smallVec(Foam::sqrt(SMALL)*(end-start));
|
||||||
|
start += smallVec;
|
||||||
|
end -= smallVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Do tests in one go
|
// Do tests in one go
|
||||||
labelList surfaceHit;
|
labelList surfaceHit;
|
||||||
{
|
{
|
||||||
@ -316,6 +324,14 @@ void Foam::meshRefinement::checkData()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extend segments a bit
|
||||||
|
{
|
||||||
|
const vectorField smallVec(Foam::sqrt(SMALL)*(end-start));
|
||||||
|
start += smallVec;
|
||||||
|
end -= smallVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Do tests in one go
|
// Do tests in one go
|
||||||
labelList surfaceHit;
|
labelList surfaceHit;
|
||||||
{
|
{
|
||||||
@ -2247,6 +2263,14 @@ void Foam::meshRefinement::dumpIntersections(const fileName& prefix) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extend segments a bit
|
||||||
|
{
|
||||||
|
const vectorField smallVec(Foam::sqrt(SMALL)*(end-start));
|
||||||
|
start += smallVec;
|
||||||
|
end -= smallVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Do tests in one go
|
// Do tests in one go
|
||||||
labelList surfaceHit;
|
labelList surfaceHit;
|
||||||
List<pointIndexHit> surfaceHitInfo;
|
List<pointIndexHit> surfaceHitInfo;
|
||||||
|
@ -283,6 +283,13 @@ void Foam::meshRefinement::getBafflePatches
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extend segments a bit
|
||||||
|
{
|
||||||
|
const vectorField smallVec(Foam::sqrt(SMALL)*(end-start));
|
||||||
|
start += smallVec;
|
||||||
|
end -= smallVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Do test for intersections
|
// Do test for intersections
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -2447,6 +2454,13 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::zonify
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extend segments a bit
|
||||||
|
{
|
||||||
|
const vectorField smallVec(Foam::sqrt(SMALL)*(end-start));
|
||||||
|
start += smallVec;
|
||||||
|
end -= smallVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Do test for intersections
|
// Do test for intersections
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -626,6 +626,13 @@ Foam::label Foam::meshRefinement::markSurfaceRefinement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extend segments a bit
|
||||||
|
{
|
||||||
|
const vectorField smallVec(Foam::sqrt(SMALL)*(end-start));
|
||||||
|
start += smallVec;
|
||||||
|
end -= smallVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Do test for higher intersections
|
// Do test for higher intersections
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -835,6 +842,14 @@ Foam::label Foam::meshRefinement::markSurfaceCurvatureRefinement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extend segments a bit
|
||||||
|
{
|
||||||
|
const vectorField smallVec(Foam::sqrt(SMALL)*(end-start));
|
||||||
|
start += smallVec;
|
||||||
|
end -= smallVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Test for all intersections (with surfaces of higher max level than
|
// Test for all intersections (with surfaces of higher max level than
|
||||||
// minLevel) and cache per cell the max surface level and the local normal
|
// minLevel) and cache per cell the max surface level and the local normal
|
||||||
// on that surface.
|
// on that surface.
|
||||||
|
Loading…
Reference in New Issue
Block a user