mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
MRG: merged develop line back into integration branch
This commit is contained in:
@ -103,7 +103,7 @@ enum {
|
||||
XF_RF_DATA_KTC=105,
|
||||
XF_RF_DATA_VGS_DTRM=106,
|
||||
XF_RF_DATA_VGF_DTRM=107,
|
||||
XF_RF_DATA_RSTRESS=108, /* V4 reynolds stress model */
|
||||
XF_RF_DATA_RSTRESS=108, /* V4 reynolds stress model */
|
||||
XF_RF_DATA_THREAD_RAD_FLUX=109,
|
||||
|
||||
/* mass absorption term for absorbing porous media model */
|
||||
@ -133,12 +133,12 @@ enum {
|
||||
XF_RF_DATA_TKE_M2=126,
|
||||
XF_RF_DATA_TED_M2=127,
|
||||
|
||||
XF_RF_DATA_RUU=128, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RVV=129, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RWW=130, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RUV=131, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RVW=132, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RUW=133, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RUU=128, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RVV=129, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RWW=130, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RUV=131, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RVW=132, /* V5 reynolds stress model */
|
||||
XF_RF_DATA_RUW=133, /* V5 reynolds stress model */
|
||||
|
||||
XF_RF_DATA_DPMS_EROSION=134,
|
||||
XF_RF_DATA_DPMS_ACCRETION=135,
|
||||
@ -227,18 +227,18 @@ chunk.
|
||||
XF_RF_DATA_NUT_M1=501,
|
||||
XF_RF_DATA_NUT_M2=502,
|
||||
|
||||
XF_RF_DATA_RUU_M1=503,
|
||||
XF_RF_DATA_RVV_M1=504,
|
||||
XF_RF_DATA_RWW_M1=505,
|
||||
XF_RF_DATA_RUV_M1=506,
|
||||
XF_RF_DATA_RVW_M1=507,
|
||||
XF_RF_DATA_RUU_M1=503,
|
||||
XF_RF_DATA_RVV_M1=504,
|
||||
XF_RF_DATA_RWW_M1=505,
|
||||
XF_RF_DATA_RUV_M1=506,
|
||||
XF_RF_DATA_RVW_M1=507,
|
||||
XF_RF_DATA_RUW_M1=508,
|
||||
|
||||
XF_RF_DATA_RUU_M2=509,
|
||||
XF_RF_DATA_RVV_M2=510,
|
||||
XF_RF_DATA_RWW_M2=511,
|
||||
XF_RF_DATA_RUV_M2=512,
|
||||
XF_RF_DATA_RVW_M2=513,
|
||||
XF_RF_DATA_RUU_M2=509,
|
||||
XF_RF_DATA_RVV_M2=510,
|
||||
XF_RF_DATA_RWW_M2=511,
|
||||
XF_RF_DATA_RUV_M2=512,
|
||||
XF_RF_DATA_RVW_M2=513,
|
||||
XF_RF_DATA_RUW_M2=514,
|
||||
|
||||
XF_RF_DATA_ENERGY_M1=515,
|
||||
@ -271,9 +271,9 @@ chunk.
|
||||
|
||||
EXPAND_50_EQUAL(XF_RF_DATA_UDS_,700), /* user defined scalar */
|
||||
EXPAND_50(XF_RF_DATA_UDS_,_M1=, 750), /* user defined scalar
|
||||
* at fist time level */
|
||||
* at fist time level */
|
||||
EXPAND_50(XF_RF_DATA_UDS_,_M2=, 800), /* user defined scalar
|
||||
* at second time level */
|
||||
* at second time level */
|
||||
XF_RF_DATA_GRANULAR_PRESSURE=910,
|
||||
XF_RF_DATA_GRANULAR_PRESSURE_M1=0,/* never stored but symbol is
|
||||
required */
|
||||
|
||||
@ -7,7 +7,6 @@ include(${PARAVIEW_USE_FILE})
|
||||
|
||||
link_directories(
|
||||
$ENV{FOAM_LIBBIN}
|
||||
$ENV{FOAM_EXT_LIBBIN}
|
||||
)
|
||||
|
||||
include_directories(
|
||||
|
||||
@ -288,6 +288,9 @@ Foam::vtkPVFoam::vtkPVFoam
|
||||
fullCasePath = cwd();
|
||||
}
|
||||
|
||||
// The name of the executable, unless already present in the environment
|
||||
setEnv("FOAM_EXECUTABLE", "paraview", false);
|
||||
|
||||
// Set the case as an environment variable - some BCs might use this
|
||||
if (fullCasePath.name().find("processor", 0) == 0)
|
||||
{
|
||||
|
||||
@ -233,21 +233,16 @@ void Foam::vtkPVFoam::updateInfoPatches
|
||||
if (meshPtr_)
|
||||
{
|
||||
const polyBoundaryMesh& patches = meshPtr_->boundaryMesh();
|
||||
const HashTable<labelList, word>& groups = patches.groupPatchIDs();
|
||||
const HashTable<labelList>& groups = patches.groupPatchIDs();
|
||||
const wordList allPatchNames = patches.names();
|
||||
|
||||
// Add patch groups
|
||||
// ~~~~~~~~~~~~~~~~
|
||||
|
||||
for
|
||||
(
|
||||
HashTable<labelList, word>::const_iterator iter = groups.begin();
|
||||
iter != groups.end();
|
||||
++iter
|
||||
)
|
||||
forAllConstIters(groups, iter)
|
||||
{
|
||||
const word& groupName = iter.key();
|
||||
const labelList& patchIDs = iter();
|
||||
const labelList& patchIDs = iter.object();
|
||||
|
||||
label nFaces = 0;
|
||||
forAll(patchIDs, i)
|
||||
@ -349,7 +344,7 @@ void Foam::vtkPVFoam::updateInfoPatches
|
||||
// Add (non-zero) patch groups to the list of mesh parts
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
HashTable<labelList, word> groups(patchEntries.size());
|
||||
HashTable<labelList> groups(patchEntries.size());
|
||||
|
||||
forAll(patchEntries, patchi)
|
||||
{
|
||||
@ -360,7 +355,7 @@ void Foam::vtkPVFoam::updateInfoPatches
|
||||
|
||||
forAll(groupNames, groupI)
|
||||
{
|
||||
HashTable<labelList, word>::iterator iter = groups.find
|
||||
HashTable<labelList>::iterator iter = groups.find
|
||||
(
|
||||
groupNames[groupI]
|
||||
);
|
||||
@ -375,16 +370,10 @@ void Foam::vtkPVFoam::updateInfoPatches
|
||||
}
|
||||
}
|
||||
|
||||
for
|
||||
(
|
||||
HashTable<labelList, word>::const_iterator iter =
|
||||
groups.begin();
|
||||
iter != groups.end();
|
||||
++iter
|
||||
)
|
||||
forAllConstIters(groups, iter)
|
||||
{
|
||||
const word& groupName = iter.key();
|
||||
const labelList& patchIDs = iter();
|
||||
const labelList& patchIDs = iter.object();
|
||||
|
||||
label nFaces = 0;
|
||||
forAll(patchIDs, i)
|
||||
|
||||
@ -7,7 +7,6 @@ include(${PARAVIEW_USE_FILE})
|
||||
|
||||
link_directories(
|
||||
$ENV{FOAM_LIBBIN}
|
||||
$ENV{FOAM_EXT_LIBBIN}
|
||||
)
|
||||
|
||||
include_directories(
|
||||
|
||||
@ -206,6 +206,9 @@ Foam::vtkPVblockMesh::vtkPVblockMesh
|
||||
fullCasePath = cwd();
|
||||
}
|
||||
|
||||
// The name of the executable, unless already present in the environment
|
||||
setEnv("FOAM_EXECUTABLE", "paraview", false);
|
||||
|
||||
// Set the case as an environment variable - some BCs might use this
|
||||
if (fullCasePath.name().find("processor", 0) == 0)
|
||||
{
|
||||
|
||||
@ -45,7 +45,7 @@ Description
|
||||
#include "timeSelector.H"
|
||||
#include "OFstream.H"
|
||||
#include "passiveParticleCloud.H"
|
||||
|
||||
#include "labelPairHashes.H"
|
||||
#include "SortableList.H"
|
||||
#include "IOobjectList.H"
|
||||
#include "PtrList.H"
|
||||
@ -133,8 +133,6 @@ int main(int argc, char *argv[])
|
||||
fileName vtkPath(runTime.path()/"VTK");
|
||||
mkDir(vtkPath);
|
||||
|
||||
typedef HashTable<label, labelPair, labelPair::Hash<>> trackTableType;
|
||||
|
||||
forAll(timeDirs, timeI)
|
||||
{
|
||||
runTime.setTime(timeDirs[timeI], timeI);
|
||||
@ -168,13 +166,14 @@ int main(int argc, char *argv[])
|
||||
label nTracks = 0;
|
||||
|
||||
{
|
||||
trackTableType trackTable;
|
||||
labelPairLookup trackTable;
|
||||
|
||||
forAll(particles, i)
|
||||
{
|
||||
const label origProc = particles[i].origProc();
|
||||
const label origId = particles[i].origId();
|
||||
|
||||
const trackTableType::const_iterator& iter =
|
||||
labelPairLookup::const_iterator iter =
|
||||
trackTable.find(labelPair(origProc, origId));
|
||||
|
||||
if (iter == trackTable.end())
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
const fileName pdfPath = runTime.path()/"pdf";
|
||||
mkDir(pdfPath);
|
||||
|
||||
cachedRandom rndGen(label(0), -1);
|
||||
Random rndGen;
|
||||
|
||||
autoPtr<distributionModel> p
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user