Commit Graph

144 Commits

Author SHA1 Message Date
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
48af574040 new management for sampledSurface(s)
//- Does the surface need an update?
        virtual bool needsUpdate() const = 0;

        //- Mark the surface as needing an update.
        //  May also free up unneeded data.
        //  Return false if surface was already marked as expired.
        virtual bool expire() = 0;

        //- Update the surface as required.
        //  Do nothing (and return false) if no update was required
        virtual bool update() = 0;

    The constructors for the derived classes should generally start in a
    'expired' condition (ie, needsUpdate() == true) and rely on a subsequent
    call to the update() method to complete the initialization. Delaying the
    final construction as late as possible allows the construction of
    surfaces that may depend on intermediate calculation results (eg,
    iso-surfaces) and also avoids the unnecessary reconstruction of surfaces
    between sampling intervals.

    It is the responsibility of the caller to ensure that the surface
    update() is called before the surface is used.  The update() method
    implementation should do nothing when the surface is already up-to-date.
2008-12-31 18:53:57 +01:00
bf057f99c0 small change to CMakeLists.txt for cmake-2.6.2 2008-12-15 22:06:44 +01:00
c65a40d57d don't need shrink before List::transfer(DynamicList&) anymore 2008-12-12 14:20:56 +01:00
e2d140fa94 timeSelector: improved functionality
- the improved side-effect of enabling -zeroTimea alters default selection
  behaviour and -latestTime selection behaviour for utilities in which
  accidentally using the 0/ directory can cause damage (eg, reconstructPar)
- can combine -time ranges and -latestTime
2008-12-10 09:14:00 +01:00
f5b23d5065 missing patch selection 2008-12-03 11:19:40 +00:00
1cff9e5409 merge 2008-11-24 16:42:44 +00:00
47d0a28d7d Updated utilities to use the new turbulenceModels paths. 2008-11-23 16:17:05 +00:00
b352c06f0f Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-11-21 15:19:25 +00:00
fcf3262fb5 do not zonify baffles 2008-11-21 15:19:10 +00:00
74cb43af0b s/openfoam\.org/OpenFOAM.org/g 2008-11-19 19:03:22 +01:00
4d2284c99d rmt isosurface correction 2008-11-12 16:05:22 +00:00
29d67c3240 averaging in isoSurfaces 2008-11-07 18:14:06 +00:00
fd57af9980 Changed sum to gSum for parallel execution. 2008-10-29 13:18:36 +00:00
99e8bf7516 volPointInterpolation, pointMesh now MeshObject 2008-10-21 15:02:04 +01:00
10e8b73275 merge Mark's branch 2008-10-16 12:47:25 +01:00
e8843a35b5 foamToEnsightParts: add -noMesh option 2008-10-14 18:00:33 +02:00
56296e89c1 foamToEnsightParts: added -index option, streamlined IOobject usage, fixed typo 2008-10-14 15:29:30 +02:00
682c247e00 gcc 4.2.1 compiler warning 2008-10-13 09:33:36 +01:00
7a77e7ad3e Merge commit 'OpenCFD/master' into olesenm 2008-10-09 16:13:41 +02:00
9891d37172 parallel postChannel 2008-10-08 07:55:07 +01:00
28696e51ab Use LIB_SRC instead of FOAM_SRC in Make/options files 2008-10-07 09:18:18 +02:00
bac9f1e1b7 wildcards in dictionaries 2008-10-02 17:28:17 +01:00
ce41e4596d sample consistent with tutorial 2008-10-02 08:43:32 +01:00
b722041fff Corrected reading of "LESProperties". 2008-09-28 22:46:33 +01:00
b76714f202 Merge branch 'olesenm' 2008-09-24 15:40:08 +01:00
8e4c7fb2c3 Corrected output of patch area. 2008-09-24 11:10:45 +01:00
f73739c79e modified remaining Allwmake scripts to run from anywhere 2008-09-19 14:47:06 +02:00
c4c0f54fc6 dynamicList change 2008-09-17 11:53:14 +01:00
481f4730da Merge branch 'master' of ssh://hunt/home/hunt2/OpenFOAM/OpenFOAM-dev 2008-09-10 16:52:35 +01:00
7b4e30d80a Updated the writePatchField function. 2008-09-10 16:52:14 +01:00
764cfa2ffe consistent numbering with postChannel tutorial 2008-09-10 13:57:48 +01:00
24fcef879d empty surface fields 2008-09-03 10:55:04 +01:00
0f4dc98c0d moving global setting back to the top of the reader GUI 2008-08-15 11:41:51 +01:00
4c42474779 resolving conflict 2008-08-15 11:39:06 +01:00
2117bf62b7 Merge branch 'olesenm' 2008-08-15 11:15:16 +01:00
120e32a58d Decided upon the format case{region}.OpenFOAM for denoting regions (paraview)
Pro: Good delimitation. Good visual distinction. No confusion with normal
       cases, since '{}' characters are excluded by !word::valid()
  Con: Possible quoting issues when creating directly instead of via paraFoam,
       but seemed to work fine with bash TAB completion.
2008-08-10 16:54:55 +02:00
7be206a5f3 Be pickier about only running certain scripts from the cwd 2008-08-09 18:50:27 +02:00
9427a34c2a PV3FoamReader gets (single) mesh region handling
- handling multiple regions require multiple readers
  - a region is currently recognized by the file name, anything after the
    '=' delimiter (eg, "case=region.OpenFOAM") is used to determine the
    mesh region, but might be changed in the future
    eg, 'case%region', 'case^region', 'case~region', 'case{region}' ...

Note:
  - Having a separate reader for each region instead attempting to handle
    all the mesh regions in a single reader is the better solution.
    It is not only simpler, but allows distinct field selections for
    each region
Todo:
  - Haven't a test for Lagrangian and multi-regions.
2008-08-08 23:23:06 +02:00
4455ed2cae Added the creation and writing of cell-centred Co. 2008-08-07 16:06:12 +01:00
837bc0a249 moved global parameters back to the top of the GUI panel 2008-08-06 10:12:08 +01:00
de195bf1fd PV3FoamReader - minor changes
- remove TimeRange property from XML. Not needed for discrete time data
  - represent Lagrangian data as VTK_VERTEX for simple visualization
2008-08-05 21:41:47 +02:00
6ffd5a3358 foamToEnsightParts updated
- handle new cloud locations, got missed before the release
  - handle multiple clouds
  - more efficient checking of fields etc.
  - write case file at the end, thus we can potentially
    do something more intelligent about the time set handling
2008-08-05 20:32:23 +02:00
a9b8a507e7 Merge commit 'OpenCFD/master' into olesenm 2008-08-04 18:24:41 +02:00
22a13ea28b PV3FoamReader - tooltips and reclaim memory if mesh caching is turned off 2008-08-04 18:23:10 +02:00
062bb36693 PV3FoamReader - code cleanup
- streamlined code somewhat, minor attempt to reclaim some memory
 - now use "mesh parts" for patches/zones/sets/etc throughout to avoid
   ambiguity with mesh regions
 - collect superCells and addPointCellLabels in a class. The old version
   actually seemed to have overwritten the addPointCellLabels with each
   cellSet/cellZone. This means that part of the pointFields would be trashed
   in the combination of polyhedral cells, cellSets/cellZones and internalMesh
 - polyDecomp information for muitiple mesh regions, but not yet exploited
 - pointFields now working for cellZones/cellSets
 - extroplating fields onto walls also works as expected for interpolated
   pointFields
 - added tooltips to reader GUI

TODO:
 - pointFields (real and interpolated) for faceSets/faceZones
2008-08-03 14:17:25 +02:00
775ef2c843 PV3FoamReader improvements
- various GUI properties are now animateable="0"
    (meaning they no longer show up on the time-line)
  - move reader switches to the bottom of the GUI
  - move Lagrangian fields above pointFields for better visibility
  - basic support for multiple clouds
  - filter fields based on selection before looping over all the geometry bits
  - mesh conversion functions now return VTK mesh types for easier handling
  - faceZones mesh conversion had points/faces allocation reversed
  - updateInfo with every call to setTime() that changes the timeIndex
    This seems to be the only way to notice Lagrangian fields
  - restore displaying patchnames that got forgotten in the last commit
  - misc reorganization
2008-08-02 16:05:22 +02:00
fa0b034338 PV3FoamReader - neater multiblocks and dual output ports
- normal mesh data on port0
  - Lagrangian data on port1
  - no fixed block numbers for dividing internalMesh, patches, zones etc.
    This helps avoid ugly gaps in the multiblock output
  - avoid segfault if Lagrangian fields are converted without positions

  TODO:
  - can we label the output ports?
  - the selection of Lagrangian data and fields is wonky.
2008-08-01 20:04:38 +02:00
eb562dfdc6 Merge branch 'master' of /home/noisy2/OpenFOAM/OpenFOAM-dev 2008-07-30 16:28:43 +01:00
5d715694dd PV3FoamReader fixes
- added printMemory() method to aid debugging memory used
  - call UpdateInformation() if the mesh has changed
  - automatic activation of "internalMesh", "p", "U"
    is suppressed if a fvMesh is cached. Otherwise,
    appearing/disappearing volFields can cause a crash

  Note:
  The message "had to make up a selection value" that sometimes occurs
  seems to be paraview related (see paraview mailing list),
2008-07-30 15:50:30 +02:00