Commit Graph

916 Commits

Author SHA1 Message Date
Mark Olesen
2f4efd20d7 STYLE: rename starToFoam -> star3ToFoam for the sake of clarity 2010-02-16 18:40:10 +01:00
Mark Olesen
d857d671ac STYLE: use new argList argRead() method and operator[] for cleaner code.
- deprecate argList::additionalArgs() method and remove uses of it
2010-02-16 17:57:49 +01:00
Mark Olesen
ee293cde8e ENH: add usage information for '-overwrite' option.
- make centrally available via #include "addOverwriteOption.H"
2010-02-16 11:44:27 +01:00
andy
0bcabbb8df Merge branch 'olesenm' 2010-02-12 14:54:41 +00:00
mattijs
bd58fa5322 BUG: globalMeshData::mergePoints was assuming patch was on master processor.
Each collocated set of coupled points has a single master assigned to it.
However when doing mergePoints on a patch the master does not have to be
on the patch. So now it returns mesh point labels, not patch point labels.
2010-02-12 12:45:00 +00:00
mattijs
8cf3f429a5 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2010-02-11 09:09:54 +00:00
mattijs
b6082c3005 ENH: extraneous checking for empty list in ensightMesh. Already done elsewhere. 2010-02-11 09:07:42 +00:00
mattijs
d4f73877e3 ENH: have field selection work for pointFields instead of just volFields. 2010-02-10 14:39:55 +00:00
Mark Olesen
3613752115 ENH: add -tri (triangulate) option to foamToSurface, surfaceMeshConvert
STYLE: drop surface extraction from foamToStarMesh

- retain surfZone names when writing surfaces
- remove surface extraction/writing from meshWriter since it now
  duplicates what the meshedSurface class can do.
2010-02-10 11:49:53 +01:00
andy
7b3da686d8 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2010-02-08 19:13:37 +00:00
mattijs
605088884e ENH: point merging of internal and patches.
Uses globalMeshData::mergePoints to topologically merge mesh points.
Also now require all patches on all processors so cleaned up all code for
handling zero-sized patches.
2010-02-08 17:36:13 +00:00
Mark Olesen
2f0692e002 Merge commit 'OpenCFD/master' into olesenm 2010-02-08 15:01:48 +01:00
mattijs
379eac4f74 BUG: meshes with differing pointsInstance and facesInstance were not decomposed correctly.
In case of differing pointsInstance and facesInstance it will
- read the points belonging to the facesInstance
- construct and write the mesh belonging to the facesInstance
  (so with the old, facesInstance, points)
- additionally write the current points to pointsInstance
2010-02-08 11:12:52 +00:00
mattijs
2fd63db933 ENH: Point merging when postprocessing parallel runs
foamToEnsight will merge points on coupled patches. (only for mesh, not for
patches)
2010-02-05 16:27:03 +00:00
mattijs
4747a0c2e6 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2010-02-05 13:21:24 +00:00
mattijs
d7d97f1f36 ENH: Removed the -filterPatches option.
Option was not used anymore. Cleans up the code a bit.
2010-02-05 10:32:47 +00:00
graham
b98a01b28c ENH: surfaceInertia. Adding the calculation of the Q tensor, required
for six DoF motion bodies that are not principal axis aligned shapes
to start with.

Calculates the best match axes to give the most naturl transformation
from the Cartesian axes. The eigenvectors are returned in the order
relating to ascending magnitude of their eigenvalues - not necessarily
in a right handed triplet.
2010-02-04 19:51:31 +00:00
graham
1a9e6bcfad Revert "Removing large test .obj files from surfaceInertia utility directory."
This reverts commit edfba8be92.
2010-02-03 18:36:30 +00:00
Mark Olesen
8426ca1a8c Merge commit 'OpenCFD/master' into olesenm 2010-02-03 17:40:37 +01:00
mattijs
36346ec1a2 ENH: Do a weighted balance before refinement and layer addition.
Have weight=7 on cells to be refined and balance. Then after refinement
there will be perfect balancing. Similar for layer addition.
2010-02-03 06:18:30 +00:00
mattijs
5dd93c1189 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2010-02-02 23:01:39 +00:00
graham
9f23282e0d STYLE: surfaceInertia. Adding space to option description. 2010-02-02 19:12:58 +00:00
Mark Olesen
a070321792 ENH: Add usage information for snappyHexMesh -overwrite option.
Make debug optional.

- minor wording changes in the messages
2010-02-02 15:39:45 +01:00
mattijs
992344ffac ENH: sampling on triSurfaceMesh
sampledTriSurfaceMesh adds sampling on points/triangles of a triSurface(mesh).
All values outside mesh are set to 0.
2010-02-01 16:31:48 +00:00
mattijs
20ac00f67c ENH: have -loop option on setSet to enable -batch over a set of directories.
Only allowed in batch mode. Causes any set to be written to time directory
instead of facesInstance.
2010-01-29 11:43:28 +00:00
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
e931525a0f BUG: sets relating to geometry (most mesh errors) should be written to
pointsInstance.

For now also dump topology related sets to pointsInstance since otherwise
paraFoam cannot see them (only looks at first 'sets' directory when searching
back)
2010-01-28 12:19:17 +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
mattijs
dc9a8981a3 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2010-01-27 13:30:16 +00:00
mattijs
011bbf46bc ENH: splitMeshRegions now fills in coupling information in directMapped patch.
- added directMapped*Patch constructors with uniform offset
- changed splitMeshRegions to use it
- adapted chtMultiRegionFoam tutorials
2010-01-27 13:24:06 +00:00
andy
95040bc1a0 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2010-01-27 12:44:58 +00:00
mattijs
3f559cbacd ENH: perturbed sample points 2010-01-27 10:25:25 +00:00
mattijs
9f6d081654 STYLE: added comment to explain limitations on pointsync 2010-01-27 10:24:12 +00:00
Mark Olesen
ba69655de3 Merge commit 'OpenCFD/master' into olesenm 2010-01-26 09:06:52 +01:00
graham
edfba8be92 Removing large test .obj files from surfaceInertia utility directory. 2010-01-25 18:42:24 +00:00
Mark Olesen
2d91dedaa0 Merge commit 'OpenCFD/master' into olesenm 2010-01-22 13:23:43 +01:00
andy
85964460b8 Removed unused code-template code 2010-01-21 13:42:23 +00:00
andy
9c3a7d3e20 Removed empty line at top of C file 2010-01-21 13:41:57 +00:00
mattijs
ed4d1f6bdf Changed order of include files so get included before tecio.h 2010-01-18 18:02:25 +00:00
mattijs
06b1695962 Added conversion of zero-sized zones 2010-01-15 17:17:05 +00:00
mattijs
d0b95d6949 Added mesh region option 2010-01-15 17:16:07 +00:00
mattijs
b7ba2d273a Corrected printing to be on master only 2010-01-15 17:15:42 +00:00
mattijs
c9033fc36f Added optional settings at comment 2010-01-15 17:14:06 +00:00
Mark Olesen
a694f6e374 Replace a few uses of triSurface with the more general meshedSurface. 2010-01-15 17:27:03 +01:00
Mark Olesen
7a200e81b4 Add foamToSurface to dev repository.
- Extracts the boundary faces of a polyMesh to a meshedSurface and
  writes in various possible formats.
2010-01-15 16:20:06 +01:00
Mark Olesen
9478a81bce Use MeshedSurface instead of triSurface in ideasUnvToFoam 2010-01-15 15:04:44 +01:00
Mark Olesen
0d49e4711c Begin code refactoring of third-party file formats. 2010-01-15 14:35:50 +01:00
mattijs
21048d9600 Disabled writing zero-sized faceZones since upset tecio library 2010-01-13 19:10:54 +00:00
andy
9c79927b67 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2010-01-05 11:02:03 +00:00
mattijs
aac29d740a Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2010-01-04 13:37:37 +00:00
andy
25bf6b6ce8 Minor code style corrections 2009-12-22 10:06:37 +00:00
graham
aa847562ce Reimplementing the uniform density solid inertia calculation from:
http://www.geometrictools.com/LibPhysics/RigidBody/RigidBody.html

in surfaceInertia utility.  Allows calculation of shell or solid
properties of a triSurface, with optionally specified volumetric or
surface density.  Default behaviour is to calculate inertia around
centre of mass, with option to specify reference point.

Various test surfaces supplied and tested against analytical results.
2009-12-18 18:14:32 +00:00
mattijs
3bfec62cee Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-17 15:55:21 +00:00
mattijs
b877323a33 Added baffle option and corrected default setting
When faceZones are present one has to decide whether to have zone faces
only on the edge of cellZones or also freestanding.
The setting for minMedialAxisAngle was corrected since the calculation
has also been corrected.
2009-12-15 15:56:35 +00:00
Mark Olesen
2760c3db5f Merge commit 'OpenCFD/master' into olesenm 2009-12-15 10:48:51 +01:00
Mark Olesen
d016db1bc6 Enhance edgeMesh to support more formats.
Read only support:

  .bdf, .nas - NASTRAN format. Handles both CBEAM and CROD as lines.
  CROD is what Hypermesh happens to output.

Write only support:

  .vtk - VTK legacy format in ASCII

Read/write support:
  .eMesh - native format, which is simply a list of points, edges
      with an additional IOobject header that lets them be moved about
      easily to use as a featureEdgeMesh.

  .inp - STAR-CD inp/cel/vrt combination
       IOobject header)

  .obj - Alias waverfront format

Radically simplify surfaceFeatureConvert by using the new edgeMesh
functionality.
2009-12-11 16:29:55 +01:00
mattijs
9d817bfbdf Added -region option 2009-12-11 11:55:07 +00:00
mattijs
a029a59036 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-09 17:44:13 +00:00
mattijs
e8af5d62d5 Filter out zero-sized patches; add generic capability 2009-12-09 17:42:30 +00:00
Mark Olesen
0fc464254a Fix minor bug in surfaceFeatureExtract.C 2009-12-09 13:50:31 +01:00
andy
99c22976ea added git option 2009-12-09 10:06:00 +00:00
Mark Olesen
30eac79d55 argList gets addNote() static method
- output any notes in the usage
2009-12-09 10:58:32 +01:00
Mark Olesen
dd8f4f657a adjust usage for a few applications to account for new style 2009-12-09 10:19:53 +01:00
mattijs
960c192d25 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
Conflicts:
	applications/utilities/mesh/manipulation/transformPoints/transformPoints.C
2009-12-08 11:49:13 +00:00
mattijs
a8c400de1d added region option 2009-12-07 14:59:57 +00:00
Mark Olesen
190bbd69de add corners() method to boundBox 2009-12-07 13:06:03 +01:00
Mark Olesen
b634c17e55 fixed off-by-one error in argList text wrap 2009-12-04 14:34:04 +01: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
0e33bf0bba add some usage information to a few utilities 2009-12-04 10:20:15 +01:00
Mark Olesen
6e3ed58ae5 Merge commit 'OpenCFD/master' into olesenm 2009-12-03 16:40:37 +01:00
mattijs
1665a86206 more Icc11.1 changes 2009-12-02 18:32:03 +00:00
mattijs
4eb40f90ee link all libraries 2009-12-02 16:41:28 +00:00
mattijs
5ee1f98e2c linear interpolation always 2009-12-02 16:38:19 +00:00
mattijs
a0a05c1b77 allow region interfaces on processor patches 2009-12-02 16:37:59 +00:00
Mark Olesen
587401643c add text wrapping to the argList::printUsage output 2009-12-03 16:16:56 +01:00
Mark Olesen
c091d856ae pedantic changes: 'forAll (' -> 'forAll(' in applications/
- to match coding guidelines
2009-12-03 14:12:08 +01:00
Mark Olesen
58b7e64185 Use argList::addOption, argList::addBoolOption (almost) everywhere
- ensure that the standard options (eg, from timeSelector) also have
  some usage information
2009-12-03 13:32:12 +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
c3457b5152 argList - specializations for optionRead<string> etc.
- new optionLookupOrDefault and additional form of optionReadIfPresent
  with a default value
2009-12-02 13:45:11 +01:00
mattijs
47eb0c5cd2 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
Conflicts:
	applications/utilities/postProcessing/dataConversion/foamToTecplot360/Allwmake
2009-12-01 16:47:45 +00:00
mattijs
49a2c73b2d tecplot360 converter 2009-12-01 16:43:47 +00: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
mattijs
648e485e7d adapted angle for medial axis determination 2009-11-26 13:06:56 +00: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
9157364a4b Merge commit 'OpenCFD/master' into olesenm 2009-11-25 12:29:31 +01:00
Mark Olesen
b3cdac4baf remove unused (and duplicate) Tuple.H in applications/utilities/mesh/advanced/modifyMesh/ 2009-11-25 12:07:03 +01:00
andy
407d047f07 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-11-24 14:45:05 +00:00
andy
95b2a4d39b re-design to use RASModel 2009-11-24 13:05:01 +00: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
87300f124e Merge commit 'OpenCFD/master' into olesenm 2009-11-23 12:03:10 +01:00
mattijs
f0ddc03279 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-11-21 10:54:47 +00: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
graham
fabbd8bb47 Merge branch 'master' into dsmc 2009-11-20 11:31:30 +00:00