Commit Graph

162 Commits

Author SHA1 Message Date
mattijs
8b7f6666ca ENH: sets are now searched for.
Some tools now output sets at the pointsInstance (if relating to geometry),
some at the facesInstance (if relating to topology).
So when loading them we now search for them from current time down
to facesInstance. They cannot be beyond facesInstance.
Adapted Time::findInstance to take optional limiting instance. Adapted
topoSet to use this. Adapted all uses of IOobjectList on sets to do the
same.
2010-01-29 10:25:13 +00:00
mattijs
4b0c5233a9 STYLE: 80 char line length 2010-01-28 11:55:06 +00:00
mattijs
29b76fa714 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2010-01-28 11:52:06 +00:00
mattijs
0bf1587872 BUG: cell/face/pointSet should be read from facesInstance, not pointsInstance.
This comes up when displaying sets on moving meshes. The topology does not
change so the set should stay the same.
2010-01-28 11:50:52 +00:00
andy
001c78e37d STYLE: no spaces around bracketed args, eg (x) NOT ( x ) 2010-01-28 10:57:48 +00:00
andy
99c22976ea added git option 2009-12-09 10:06:00 +00:00
Mark Olesen
37c4f2f375 remove empty 'Description' from various .C files 2009-12-04 14:11:33 +01:00
Mark Olesen
5e972c772f remove trailing space from some files 2009-12-04 13:39:35 +01:00
Mark Olesen
00985638d8 remove fvCFD.H usage from remaining library source
- exception calcType.H since it'll most likely be used for building
  applications anyhow

- use quailified names in more of the lagrangian code

- killed some tab indents in various places.
2009-12-02 15:34:52 +01:00
Mark Olesen
909e6b27e4 Apply coding style recommendations:
- space between keyword and bracket in 'for(..)', 'if(..)', 'while(..)'
2009-11-30 08:55:03 +01:00
Mark Olesen
6bdb7fb7b5 fixup copyright dates on new code 2009-11-30 08:21:44 +01:00
Mark Olesen
a51f8d3534 Merge commit 'bundle/home' into olesenm 2009-11-30 08:12:04 +01:00
Mark Olesen
fa93ce8cd7 coding style adherence
- markup codingStyleGuide.org examples so they actually indent correctly

- use 'Info<<' as per codingStyleGuide instead of 'Info <<'
2009-11-27 15:39:14 +01:00
Mark Olesen
d17d015f88 Use new last() method for List-type classes
- use first() method in some places as well where it helps clarity

- there are a few remaining cases: git grep 'size()-1]'
2009-11-26 13:35:57 +01:00
Mark Olesen
81891675ea Commit Paraview enhancements - quit working on sets/zones frills
- Include Sets/Zones now scans immediately to refresh the list of available
  mesh parts. Unfortunately, this also causes the object panel to be
  modified, even although the selection doesn't acutally need to change.
  This seems to be due to how the pqNamedWidgets are getting the information
  from the proxy properties. I can't figure if it's possible to acheive what
  I want, but we can probably live with the current implementation.

  After IncludeZones, simply us 'Reset' to undo the spurious GUI changes.
  Works fine - just looks a bit silly.

- Added 'Refresh' button to rescan for new times/fields.  Good for
  post-processing ongoing calculations without exiting the reader.

- Added 'Skip Zero Time' checkbox: many (some) calculations have
  data missing at time=0 (eg, rho, lagrangian, etc). This provides
  a convenient way to skip over this time.

- Future?:
  We could probably pick up favourite default values for these switches from
  ~OpenFOAM/controlDict, from a case system/paraview, or simply by making
  the casename.OpenFOAM also be an OpenFOAM dictionary with the settings.
2009-11-24 00:09:07 +01:00
Mark Olesen
2c52705cf7 move reconstructPar 'guts' to src/parallel/reconstruct
- in preparation for adding an optional '-reconstruct' to a few utilities
  re-use as -lreconstruct library

- move related stuff there too
      src/decompositionMethods/decompositionMethods
      -> src/parallel/decompositionMethods

- added missing namespace qualifiers
2009-11-20 14:37:56 +01:00
andy
efb0d93a0c removed ParaView 2 reader module 2009-11-19 10:48:28 +00:00
andy
cf9b9bff17 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-11-12 13:29:10 +00:00
Mark Olesen
ebe39c4ea4 Merge commit 'OpenCFD/master' into olesenm 2009-11-04 08:56:20 +01:00
Mark Olesen
b54f89ac05 PV3Reader - render after toggling show point/patch names 2009-11-03 22:13:48 +01:00
henry
d109f88657 Fix for viewing glyphs on a set of patches provided by Mark Olesen. 2009-11-03 20:58:41 +00:00
Mark Olesen
e3b5d373d0 PV3FoamReader bugfix - interpolated point fields had wrong names on the patches 2009-11-03 21:36:50 +01:00
andy
23cf5d94cd code tidying 2009-11-03 14:33:01 +00:00
Mark Olesen
83cee1cb68 First useful Qt modifications to the PV3blockMeshReader, PV3FoamReader
- Show Point Numbers as is_internal="1" and hook directly into a QT-checkbox
  and thus bypass modifying the reader state.

- Same for Cache Mesh and Show Patch Names
2009-10-23 00:33:42 +02:00
Mark Olesen
1ef88a2aef blockMesh reader fix, start refactoring of PV3Readers
- apply scaleFactor (eg, mm->m) in PV3 reader - this looks better when
  overlaying with other objects

- stop segfault when paraview exits without deleting readers first
2009-10-18 17:50:41 +02:00
Mark Olesen
c57262c2a0 Cleanup/fixup paraview readers
- remove patch/point text labels upon deletion

- combined client/server plugin instead of separate .so files
  first experiment with adding panel decorations

- directory reorganization
2009-10-18 16:23:41 +02:00
Mark Olesen
5e852915f5 Merge commit 'bundle/home' into olesenm
Conflicts:
	src/autoMesh/autoHexMesh/trackedParticle/trackedParticle.H
	src/mesh/autoMesh/autoHexMesh/trackedParticle/trackedParticle.H
	src/mesh/blockMesh/blockMesh/blockMeshMerge.C
	src/postProcessing/functionObjects/field/streamLine/streamLineParticle.H
2009-10-08 12:03:35 +02:00
Mark Olesen
e003b5207a PV3blockMeshReader - added display of curvedEdges 2009-10-07 22:42:41 +02:00
Mark Olesen
da62572187 ParaView reader for blockMesh
- first version. Only uses simple hex shapes for the blocks.
2009-10-05 23:36:08 +02:00
Mark Olesen
b0f31c4b05 PV3FoamReader - cosmetic changes 2009-10-05 23:21:42 +02:00
mattijs
791b5aaeaa replacing isType with isA to enable directMappedWall to work 2009-09-15 17:51:59 +01:00
andy
e829004a71 bugfix: use ptf.name() on point fields 2009-09-10 16:02:35 +01:00
Mark Olesen
60549b30f5 ensightFoamReader - updated README* and global_extern*h from ensight-82
- still using the same version of the reader API (2.03)

- this seems to solve strange issues with genericPatchField symbols,
  but it still doesn't get the reader module working.

- added in the release information (the build string)
2009-08-06 14:53:40 +02:00
henry
d4864d9b6e Moved the "generic" BCs into a separate library and included it only in those utilities
which need this functionality.  Solvers will now check the correctness of the BCs on
read.
2009-08-04 22:13:54 +01:00
andy
c1993c92fa Merge branch 'olesenm' 2009-07-23 12:42:52 +01:00
Chris Greenshields
1bfa912781 Modified more Description entries in utilities for documenting purposes 2009-07-22 15:51:53 +01:00
Mark Olesen
5692a06a32 fixed up sloppy Allwclean files 2009-07-22 12:39:20 +02:00
Mark Olesen
bda95a48fd Export new environment variable FOAM_CASENAME
- contains the name part of the FOAM_CASE environment variable
2009-07-22 11:30:03 +02:00
andy
e5c36daef8 using fieldname as label for point field data instead of volPointInterpolate(X) 2009-07-17 18:06:33 +01:00
andy
d8145ab608 cosmetics/coding style updates 2009-07-13 14:38:56 +01:00
henry
218b2baec4 Changed SP and DP to WM_SP and WM_DP. 2009-07-03 11:46:45 +01:00
Mark Olesen
8edf105c45 cleanup of time handling (cosmetic changes), used timeSelector in more places 2009-05-20 15:40:30 +02:00
andy
fa794c981d Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-03-26 13:50:34 +00:00
andy
9bc9b9cd65 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-03-23 17:44:57 +00:00
Mark Olesen
852d9f3298 #undef VTKPV3FOAM_DUALPORT to disable dual-port output for paraview reader 2009-03-23 18:39:29 +01:00
Mark Olesen
549c78f9fe PV3FoamReader fix
- using a filter such as clip-plane on a multi-port source causes
  inconsistent UPDATE_TIME_STEPS() on each port. This looks like a
  VTK/Paraview bug to me.
  Workaround: check both ports and take the first one that has a value
  different than the last time set.
2009-03-23 14:53:14 +01:00
andy
ff78c6d637 conflict resolution 2009-03-23 11:58:03 +00:00
Mark Olesen
fe455d1cbf cloud, surfaceRegistry: rename subInstance -> prefix 2009-03-16 08:27:03 +01:00
andy
156b71b9f1 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-03-12 17:22:35 +00:00
Mark Olesen
e011328d99 Merge commit 'OpenCFD/master' into olesenm 2009-03-12 10:39:22 +01:00
Mark Olesen
b968e62ef9 objectRegistry fixes
- objectRegistry gets a rename() that also adjusts the dbDir
- cloud reworked to use static variables subInstance and defaultName.
  This avoids writing "lagrangian" everywhere

string fixes
- avoid masking of std::string::replace in string.H
- avoid old strstream in PV3FoamReader
2009-03-06 15:18:00 +01:00
mattijs
7e69b33586 include file 2009-03-05 17:01:16 +00:00
mattijs
50df688455 demand driven volPointInterpolation 2009-03-05 14:01:23 +00:00
mattijs
f411ac6884 patchnames on uncached meshes 2009-03-04 12:34:53 +00:00
andy
8d97ebf3cd Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-24 15:57:53 +00:00
andy
1f7a41b297 cosmetics 2009-02-24 15:57:34 +00:00
mattijs
a1525f016a extrapolate to any non-constraint patch 2009-02-20 16:47:09 +00:00
Mark Olesen
69918f23c5 consistency update
- OSspecific: chmod() -> chMod(), even although it's not used anywhere

- ListOps get subset() and inplaceSubset() templated on BoolListType

- added UList<bool>::operator[](..) const specialization.
  Returns false (actually pTraits<bool>::zero) for out-of-range elements.
  This lets us use List<bool> with lazy evaluation and no noticeable
  change in performance.

- use rcIndex() and fcIndex() wherever possible.
  Could check if branching or modulus is faster for fcIndex().

- UList and FixedList get 'const T* cdata() const' and 'T* data()' members.
  Similar to the STL front() and std::string::data() methods, they return a
  pointer to the first element without needing to write '&myList[0]', recast
  begin() or violate const-ness.
2009-02-06 20:43:09 +01:00
Mark Olesen
e5c5829244 OSspecific: isDir(), isFile() instead of dir(), file() 2009-02-02 16:50:18 +01:00
andy
5e20eeb0e9 bugfix:
- convertPointField caused a seg-fault if the internal field was null
      - attempted to name the vtk object the name of the null field

+ minor clean-up
2009-01-28 15:54:42 +00:00
Mark Olesen
95dcb6ded7 Simplify checking of container (List/HashTable, strings) sizes
- can use 'XX.empty()' instead of 'XX.size() == 0', 'XX.size() < 1' or
  'XX.size() <= 0' or for simpler coding.
  It also has the same number of characters as '!XX.size()' and /might/ be
  more readable

- many size checking had 'XX.size() > 0', 'XX.size() != 0', or 'XX.size() >= 1'
  when a simple 'XX.size()' suffices
2009-01-10 20:28:06 +01:00
Mark Olesen
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
Mark Olesen
bf057f99c0 small change to CMakeLists.txt for cmake-2.6.2 2008-12-15 22:06:44 +01:00
Mark Olesen
c65a40d57d don't need shrink before List::transfer(DynamicList&) anymore 2008-12-12 14:20:56 +01:00
mattijs
fcf3262fb5 do not zonify baffles 2008-11-21 15:19:10 +00:00
mattijs
99e8bf7516 volPointInterpolation, pointMesh now MeshObject 2008-10-21 15:02:04 +01:00
Mark Olesen
28696e51ab Use LIB_SRC instead of FOAM_SRC in Make/options files 2008-10-07 09:18:18 +02:00
mattijs
bac9f1e1b7 wildcards in dictionaries 2008-10-02 17:28:17 +01:00
Mark Olesen
f73739c79e modified remaining Allwmake scripts to run from anywhere 2008-09-19 14:47:06 +02:00
andy
0f4dc98c0d moving global setting back to the top of the reader GUI 2008-08-15 11:41:51 +01:00
andy
4c42474779 resolving conflict 2008-08-15 11:39:06 +01:00
Mark Olesen
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
Mark Olesen
7be206a5f3 Be pickier about only running certain scripts from the cwd 2008-08-09 18:50:27 +02:00
Mark Olesen
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
andy
837bc0a249 moved global parameters back to the top of the GUI panel 2008-08-06 10:12:08 +01:00
Mark Olesen
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
Mark Olesen
22a13ea28b PV3FoamReader - tooltips and reclaim memory if mesh caching is turned off 2008-08-04 18:23:10 +02:00
Mark Olesen
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
Mark Olesen
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
Mark Olesen
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
Mark Olesen
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
Mark Olesen
f8b2746327 PV3FoamReader reorganization
- vtkPV3Foam get PrintSelf (reduces number of methods)
  - move output data member from vtkPV3Foam -> PV3FoamReader
    in preparation for rewriting output method
  - roughed in code to track mesh/field changes in preparation for rewriting
    output method
  - progress bar with arbitrary values to give the user something to watch
2008-07-28 13:36:23 +02:00
Mark Olesen
07d8a616f8 minor cleanup of Allwmake
- Remove paraFoam/Allwmake leftover junk
  - Always attempt make of libccmio to ensure lnInclude/ exists
2008-07-25 16:04:32 +02:00
Mark Olesen
3cdc8ca03c static label Time::findClosestTimeIndex(const instantList&, const scalar)
- avoid code duplication in vtkPV3Foam.C and checkTimeOption.H
  - can also be used in Time::findClosestTime(), but didn't touch that
2008-07-25 15:37:38 +02:00
Mark Olesen
8a2596a05c PV3FoamReader repaired several misfeatures
- On the first call, select 'internalMesh' and the 'p', 'U' fields.
    This corresponds to a fairly common default case without loading all
    possible fields etc.
  - Include zones should now work without issuing a FatalError when the
    corresponding files are missing. I must have tried too many things
    at once and didn't notice this before.
  - Use ZoneMesh for zone names if the fvMesh is already cached
    (skips re-reading the same files).
  - Change reader description to "OpenFOAM Reader" to distinguish it a bit
    from the vtkOpenFOAMReader built into paraview/vtk
  - Misc. file and method names reorganized

  - Remaining problem:
    mixing internalMesh and cellZones is clunky since there aren't yet
    interpolated point values for cellSets/cellZones. Paraview complains
    about the mismatch, but extracting a block is still okay.

  TODO:
  - multi-port output for Lagrangian
  - hold all the vtk mesh parts (including multiblock) and just pass the
    reference. With this, the pipeline might notice that the geometry is
    actually identical and skip the PVGeometryFilter that takes so long.
2008-07-25 10:46:10 +02:00
Mark Olesen
af5674aca5 PV3FoamReader - remove old time-selection arrays 2008-07-24 15:58:59 +02:00
Mark Olesen
b43378747a Merge commit 'OpenCFD/master' into olesenm 2008-07-23 13:41:51 +02:00
Mark Olesen
dcdce31460 paraview reader: export modified FOAM_CASE for parallel sub-cases 2008-07-23 09:59:41 +02:00
Mark Olesen
04f065cf4c fix PV3FoamReader to restore mesh caching
previous disabling of the TimeSelection arrays [commit c52b20b..]
resulted in the mesh caching being disabled :(

Simplified code is enabled/disabled by PV3FOAM_TIMESELECTION define.
Might be removed in the future.
2008-07-22 16:26:03 +02:00
Mark Olesen
202570dce4 renamed ensight76FoamExec -> ensightFoamReader for consistency 2008-07-22 14:52:57 +02:00
Mark Olesen
e629d33a08 paraview reader: export FOAM_CASE env variable 2008-07-22 13:07:45 +02:00
andy
64a1f7cbde fix for cyclic boundary handling 2008-07-17 16:15:42 +01:00
mattijs
e3e2b91823 Not use .foam extension 2008-07-09 09:35:14 +01:00
andy
8d1adca1e7 bug fix - correcting my earlier error... 2008-07-04 13:28:55 +01:00
andy
02fb293fcf moved a couple of comments to inside debug statements 2008-07-03 16:58:25 +01:00
andy
d23666042f general clean-up, and renamed filename extension to avoid conflict with internal reader 2008-07-03 14:35:00 +01:00
Mark Olesen
02cabc3cf2 updated Copyright (C) \d+-2008 OpenCFD Ltd. 2008-06-25 15:01:46 +02:00
andy
c52b20b10d Updating time selection 2008-06-16 11:30:13 +01:00
henry
47996ef186 Removed all warnings from gcc-4.3.0 except those from
NamedEnum (bug in compiler?)
molecule (Graham dealing with it)
lex (no comment)
VTK (again no comment)
2008-06-11 15:55:07 +01:00
andy
56878a9fc7 changed point field data again - no need to use anything other than fieldname (removed vpi prefix) 2008-06-10 14:48:39 +01:00