Commit Graph

140 Commits

Author SHA1 Message Date
Mark Olesen
0fc464254a Fix minor bug in surfaceFeatureExtract.C 2009-12-09 13:50:31 +01: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
190bbd69de add corners() method to boundBox 2009-12-07 13:06:03 +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
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
graham
ad669ae3d8 Merge branch 'master' into cvm
Conflicts:
	doc/codingStyleGuide.org
2009-11-30 14:55:39 +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
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
graham
14675f23e0 Merge branch 'master' into cvm 2009-11-16 15:50:36 +00:00
mattijs
6ae8581d03 explicit constructor 2009-11-13 18:18:32 +00:00
graham
93a97bc0e5 Merge branch 'master' into cvm 2009-10-19 18:28:21 +01:00
henry
e9da288118 Reverted the Americanism "math" back to the original "mathematical" and reverted name of
the include file back to mathematicalConstants.H to make upgrading code slightly easier.
2009-10-10 22:58:58 +01:00
graham
52468771d5 Merging master, fixing wmake/rules conflict. 2009-09-21 11:21:06 +01:00
mattijs
791b5aaeaa replacing isType with isA to enable directMappedWall to work 2009-09-15 17:51:59 +01:00
graham
325e9e0ab0 Merge branch 'master' into cvm 2009-09-15 15:17:08 +01:00
andy
8dcea0f8cd using new constant definitions 2009-08-28 18:04:22 +01:00
graham
2fca5550cd Merge branch 'master' into cvm 2009-08-19 18:40:21 +01:00
mattijs
064892f3f8 surface patch handling improvements 2009-08-17 22:04:14 +01:00
mattijs
adf3e4b7e1 clever usage of #include 2009-08-17 17:05:38 +01:00
graham
e974a62837 Merge branch 'master' into cvm 2009-08-11 23:17:56 +01:00
graham
349d714271 Rename utility surfaceRemoveBaffles -> surfaceSplitByTopology 2009-08-11 19:46:20 +01:00
graham
7179677fae Adding surfaceRemoveBaffles utility to strip baffle parts from surfaces. 2009-08-11 19:03:26 +01:00
mattijs
d8f39a9361 improved error message 2009-08-11 12:58:29 +01:00
graham
2d2c8cf8bc Merge branch 'master' into cvm 2009-07-28 10:40:50 +01:00
andy
930477f0f1 updating verion dev->1.6 2009-07-24 17:49:15 +01:00
henry
816f6b3488 Updated the headers. 2009-07-24 17:01:31 +01:00
graham
0cbe8c8466 Fixing snappyHexMesh tut conflict 2009-07-06 14:40:38 +01:00
mattijs
801f18b5ed added region option 2009-07-01 13:55:05 +01:00
graham
02ddfa98e1 Merging master, fixing conflict in searchableBox.C 2009-06-18 15:26:01 +01:00
mattijs
918a34dca4 surface redistribution 2009-06-02 17:47:51 +01:00
graham
8416ec4ebc merging master, fixing conflict in surfaceFeatureExtract. 2009-05-20 18:40:50 +01:00
Mark Olesen
d1295da31f adjust solvers and utilities to use new argList methods
- also drop various unused time options from src/OpenFOAM/include
2009-05-19 20:21:50 +02:00
graham
ff66dc68d4 Merge branch 'master' into cvm 2009-04-25 13:47:54 +01:00
graham
aee81bd45e Added points and edges only constructor for surfaceFeatureConvert 2009-04-24 17:57:18 +01:00
mattijs
371903eb4a Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-04-23 16:22:31 +01:00
graham
423ed7be7e Merge branch 'master' into cvm 2009-04-22 19:46:48 +01:00
graham
261b4dc28f Basic featureEdgeMesh functionality. Dropped intermediate edgeMesh, not serving any purpose, moved io into featureEdgeMesh. Reads and writes from file. Can construct self from surfaceFeatures object. This functionality added to surfaceFeatureExtract, writing to constant/featureEdgeMesh. 2009-04-22 18:47:13 +01:00
mattijs
7de5697a2d use PatchTools algorithms 2009-04-20 17:49:24 +01:00
Mark Olesen
6a3d9effa0 fixed typo in surface utils 2009-04-17 11:16:44 +02:00
mattijs
b020b28787 made selfintersection check optional 2009-04-09 16:51:52 +01:00
Mark Olesen
fb1e155eed Merge commit 'OpenCFD/master' into olesenm 2009-03-16 08:28:08 +01:00
mattijs
0128b2be68 UIndirectList 2009-03-12 19:25:21 +00:00
mattijs
642dadf1f7 yaw pitch roll 2009-03-12 15:12:31 +00:00
Mark Olesen
e011328d99 Merge commit 'OpenCFD/master' into olesenm 2009-03-12 10:39:22 +01:00
Mark Olesen
ce3d79de1c surfMesh changes
- can read MeshedSurface, UnsortedMeshedSurface from surfMesh/
- can write surfMesh in any third-party format
2009-03-10 01:37:06 +01:00
Mark Olesen
6309810e2e surfMesh reworked
- treat 'ofs' IO just like any other format
- dropped BasicMeshedSurface, since MeshedSurface can now also have zero or
  more zones
- UnsortedMeshedSurface is a special type of MeshedSurface with zero zones,
  but with additional zoneId labels
- use MeshedSurfaceProxy for writing surfaces with points/faces/zones and
  optional faceMap - provides output interface for MeshedSurface,
  UnsortedMeshedSurface and surfMesh.
- simplify output to filenames only, I can't see that the Ostream
  is needed anywhere
- surfMesh renaming now works, after the objectRegistry fix
2009-03-08 00:59:33 +01:00
mattijs
e1c28506b7 scaling logic 2009-03-06 13:35:05 +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
d3ec38f0aa Merge commit 'OpenCFD/master' into olesenm 2009-02-06 10:40:19 +01:00
Mark Olesen
ffd9bb08a8 OSspecific: altered file tests
- removed the previously added fileName type(), isDir(), isFile() methods.

- added optional bool parameter to isFile() function to explicitly
  enable/disable the check for gzip files.

- fixed minor bugginess where the default usage of isFile() would result in
  false positive matches.

- be slightly more stringent and use isDir() and isFile() instead of
  exists() function when we actually know the expected type.
2009-02-06 10:25:41 +01:00
Mark Olesen
fb29e08539 Merge commit 'bundle/home' into olesenm 2009-02-06 08:34:43 +01:00
Mark Olesen
22f6b4dc06 surfMesh gets surfPointFields, surfaceFormats write() for surf mesh components
- add placeholder BoundaryMesh to surfMesh allows us to drop the
  SurfGeoMesh class and just reuse the GeoMesh class.
  Do the same for triSurface.
2009-02-05 22:41:22 +01:00
Mark Olesen
3aba0e28ff surfMesh, surfaceRegistry re-working 2009-02-05 16:12:35 +01:00
Mark Olesen
a4d0094e48 added surfaceMeshImport, surfaceMeshExport 2009-02-05 00:08:24 +01:00
Mark Olesen
a43df3bddd added surfMesh, reworked MeshedSurface
- renamed surface regions (formerly patches or groups) to surfZone.

- added surfMesh, but without any of the patch information needed to make it
  useful for finiteArea.

- promoted coordinateSystem transformation to surfaceMeshConvert and moved
  old to surfaceMeshConvertTesting.
2009-02-04 16:17:14 +01:00
Mark Olesen
05440dd4a0 updated surfaceCoordinateSystemTransform 2009-02-02 16:57:50 +01:00
Mark Olesen
ffdb280a27 reworked surfMesh and PrimitivePatchExtra
- ditched PrimitivePatchExtra in favour of a PatchTools class that is
  currently just a collection of static functions. They could equally well
  live within PrimitivePatch itself, but isolated also has its advantages.

- MeshedSurface, UnsortedMeshedSurface now have 'regions' instead of
  'patches' since they are more like a faceZone for meshed surfaces than
  patches. This might avoid confusion at a later stage.
2009-01-27 23:03:21 +01:00
Mark Olesen
c048dd88c7 use new IOobject constructor: blockMesh, surfaceCoordinateSystemTransform(beta) 2009-01-27 15:12:19 +01:00
Mark Olesen
0690c64d31 PrimitivePatchExtra orientation fixed and improved face::edgeDirection() 2009-01-21 01:19:31 +01: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
dcc82bf77b boundingBox has mag() and span() methods - use them 2008-12-31 17:58:23 +01:00
Mark Olesen
e72a6234d6 surfMesh changes
- expose faceMap info in triangulate() - for use in inherited classes
 - surfMesh::triangulate() works with or without underlying pointField
 - onePatch tries to be more intelligent about retaining the patch name
2008-11-22 11:22:34 +01:00
Mark Olesen
4e700e62b0 surfMesh - moved more things to PrimitiveMeshedSurface 2008-11-17 14:55:47 +01:00
Mark Olesen
d01c115f02 surfMesh gets PrimitiveMeshedSurface as common basis 2008-11-17 01:41:07 +01:00
Mark Olesen
c651a0ba29 surfMesh code cleanup
- added protected storedPoints(), storedFaces() functions for non-const
   access to the data. Mixing protected non-const versions and public const
   versions of the same method does not agree with the compiler
 - better handling of triFace/face distinction
2008-11-15 23:29:50 +01:00
Mark Olesen
59bfd4ecef added surfaceCoordinateSystemTransform 2008-11-14 19:10:01 +01:00
Mark Olesen
9b3fb9fee3 Templated meshedSurface/keyedSurface -> MeshedSurface/UnsortedMeshedSurface
- neither class names, nor the typedefs for the <face> and <triFace>
    instances are really decided
2008-11-14 00:45:45 +01:00
Mark Olesen
345df1e970 Merge commit 'OpenCFD/master' into olesenm 2008-11-05 10:42:05 +01:00
mattijs
593db180ce added verbosity option 2008-11-04 14:47:48 +00:00
mattijs
99500b1fa8 updated for new functionality 2008-11-04 14:47:36 +00:00
Mark Olesen
ae6bf7790a reworked keyedSurface to store region information indirectly
- improves efficiency throughout
2008-10-28 01:29:51 +01:00
Mark Olesen
cd199d599e added triSurface scaling option to surfaceConvert/surfaceMeshConvert 2008-10-25 16:54:10 +02:00
Mark Olesen
2bb928ec8f checked in surfMesh library code
- keyedSurface is similar to triSurface, but uses faces
  - meshedSurface is sorted in regions and should be more memory efficient
  - surfMesh is the placeholder name for an OpenFOAM native surface format
2008-10-23 16:29:36 +02:00
mattijs
0f579e4073 wildcards in dictionaries 2008-10-02 17:28:33 +01:00
mattijs
b53fba494a smaller extents 2008-09-09 17:09:54 +01:00
mattijs
37297583d0 new utility - like autoPatch but for surfaces 2008-08-07 16:18:06 +01:00
mattijs
e9d424b7a8 removal of warning 2008-07-30 16:28:54 +01:00
Mark Olesen
5e5b26edd5 update dictionary headers and FoamFile entry to 1.5 format 2008-07-14 14:50:35 +02:00
Mark Olesen
02cabc3cf2 updated Copyright (C) \d+-2008 OpenCFD Ltd. 2008-06-25 15:01:46 +02: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
mattijs
74eeaff984 typo in comment 2008-06-05 13:06:15 +01:00
mattijs
451fa204fa cleanup backups 2008-05-29 14:05:42 +01:00
mattijs
c731cfdca4 initial mattijsLib merge 2008-04-23 15:51:54 +01:00
OpenFOAM-admin
3170c7c0c9 Creation of OpenFOAM-dev repository 15/04/2008 2008-04-15 18:56:58 +01:00