Commit Graph

175 Commits

Author SHA1 Message Date
mattijs
8859694c9e BUG: tet numbering. 2010-10-11 11:15:05 +01:00
mattijs
4e8f36a98a ENH: allow cell zone and face zone definition 2010-09-16 17:13:53 +01:00
mattijs
aa7fe837f5 COMP: ignore return value 2010-08-19 15:42:29 +01:00
graham
f26b8c1cc7 STYLE: 80 char lines. 2010-07-28 16:42:53 +01:00
graham
012494fdb5 STYLE: Fixing code style requirements for all apps.
Exception: applyWallFunctionBoundaryConditions.C cannot split #include
directives.
2010-07-27 15:27:05 +01:00
mattijs
d4d7611c9f ENH: handle msh2.2 format 2010-06-18 11:41:08 +01:00
andy
28b1a9e2c6 Merge branch 'olesenm' 2010-06-03 10:25:03 +01:00
mattijs
c51a2b0f63 ENH: have MUST_READ_IF_MODIFIED on IOdictionary construction 2010-06-02 09:48:07 +01:00
Mark Olesen
4712e131d9 STYLE: add some usage comments to some conversion utilities
STYLE: move polyDualMesh from conversion -> manipulation
2010-05-18 14:41:53 +02:00
Mark Olesen
59c0e8e24d STYLE: fix 'forAll (' -> 'forAll(' format (again) 2010-06-02 09:13:48 +02:00
Mark Olesen
72f7d46f23 ENH: add operator[](const word&) as "find-by-name" to some classes
- affected: polyBoundary, fvBoundaryMesh, ZoneMesh, searchableSurfaces

  before:
      const label zoneI = mesh.cellZones().findZoneID(zoneName);
      const cellZone& cz = mesh.cellZones()[zoneI];
  after:
      const cellZone& cz = mesh.cellZones()[zoneName];
2010-04-29 10:12:35 +02:00
Mark Olesen
147fa2a75d STYLE: add notes to some (most) command-line options
- mapFields and splitMeshRegions need more clarification
2010-04-27 10:50:15 +02:00
Mark Olesen
5cfa97624e STYLE: more consistent New methods, use unregistered IOobject where appropriate 2010-04-20 17:13:35 +02:00
Mark Olesen
42807ddd7e STYLE: fix worst spacing violations for 'os <<' constructions
- accept some violations of the coding guidelines though
- perhaps adding a style exception would be simpler.
2010-04-13 17:45:49 +02:00
Mark Olesen
874120350c STYLE: use forAllIter, forAllConstIter in more places
ENH: change some iterator -> const_iterator access

BUG: found some places with forAllIter and ::iterator !
2010-04-13 09:10:36 +02:00
Mark Olesen
b6f3bd4c23 STYLE: follow coding guide recommendation for '//- Destructor' 2010-04-12 11:55:52 +02:00
Mark Olesen
a50f01b079 STYLE: use forAllIter, forAllConstIter instead of long-hand version
STYLE: use 'forAll(' NOT 'forAll (', as per coding guide
2010-04-12 11:18:38 +02:00
Mark Olesen
c508b2fe17 STYLE: consistent capitalization of Private/Protected Member Functions in comments 2010-03-30 11:33:42 +02:00
Mark Olesen
d29c438657 STYLE: use url for FSF license instead of postal address, switch to GPL v3 2010-03-29 14:07:56 +02:00
andy
803556d761 ENH: initialised edge values to avoid compiler warning msg 2010-03-01 17:14:33 +00:00
andy
22ce56db17 Merge branch 'olesenm' 2010-03-01 15:55:30 +00:00
mattijs
27634a044e STYLE: Add help to command-line arguments 2010-03-01 14:50:41 +00:00
Mark Olesen
f2f2f60cf5 STYLE: remove unused cruft from flex-based lexers 2010-02-25 16:18:34 +01:00
Mark Olesen
f319ddfa61 ENH: begin initial coding for using upcoming vtkPolyhedron 2010-02-24 15:24:32 +01:00
Mark Olesen
689d4b2860 ENH: provide operator[] for accessing argList options.
- operator[] with label -> get args at index
- operator[] with word  -> get named option
2010-02-17 11:43:42 +01:00
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
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
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
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
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
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
mattijs
259a15d9f4 missing EOF 2009-11-13 18:15:29 +00:00
mattijs
9120e00a59 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-10-22 11:59:45 +01:00
henry
d6a278f2b2 Introduced the new file unitConversion.H to hold degToRad, radToDeg
and other unit conversion functions as they are required e.g. slug <-> kg.
2009-10-21 10:55:00 +01:00
mattijs
10dd3ea2a4 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-10-20 22:15:23 +01:00
Mark Olesen
ffc9d0d97b find/replace pi/180.0 -> degToRad() and 180.0/pi -> radToDeg()
- note left utilities/mesh/advanced/collapseEdges/collapseEdges.C as-is.
  It looks suspicious, but the change was recent, so maybe it means something
2009-10-19 13:53:25 +02:00
mattijs
61ad54ec03 skip group type 7 (nodes) as output by salome 2009-10-18 21:14:15 +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
mattijs
859d727696 added patch non-manifold edge dumping 2009-09-22 15:25:16 +01:00
mattijs
791b5aaeaa replacing isType with isA to enable directMappedWall to work 2009-09-15 17:51:59 +01:00
mattijs
40dd870588 sample gmsh files 2009-09-11 16:19:49 +01:00
andy
8dcea0f8cd using new constant definitions 2009-08-28 18:04:22 +01:00
mattijs
dc999ad07e fvMesh xfer constructor change 2009-08-07 11:27:48 +01: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
Mark Olesen
91157af10c All ThirdParty build-related stuff moved there. 2009-07-24 23:10:15 +02:00
Mark Olesen
b1a3bcc9a9 take control of Allwmake scripts for third-party sources
- this improves the chances of having a current version
2009-07-24 11:01:29 +02:00
Chris Greenshields
1bfa912781 Modified more Description entries in utilities for documenting purposes 2009-07-22 15:51:53 +01:00
mattijs
b67065aadf option for reading cubit meshes 2009-07-16 14:16:12 +01:00
mattijs
6acfd6a3ae execute bit set 2009-07-07 15:48:04 +01:00
mattijs
75945b507f error check for zero cells 2009-06-23 13:16:00 +01:00
mattijs
8900641265 not split concave angles by default 2009-06-17 13:37:53 +01:00
mattijs
3a4cd98671 update face flip map on zone 2009-06-09 14:18:37 +01:00
Mark Olesen
8edf105c45 cleanup of time handling (cosmetic changes), used timeSelector in more places 2009-05-20 15:40:30 +02: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
Mark Olesen
4366d8df2c cosmetics - adjust copyright dates 2009-05-11 15:10:31 +02:00
mattijs
676b7bfe73 added region option 2009-04-15 12:32:33 +01:00
Mark Olesen
be8cbc1018 use timeSelector mechanism in a few more utilities 2009-03-23 16:57:26 +01:00
mattijs
0128b2be68 UIndirectList 2009-03-12 19:25:21 +00:00
Mark Olesen
4b60453cf1 use while (runTime.loop() { .. } where possible in solvers
- change system/controlDict to use functions {..} instead of functions (..);
  * This is internally more efficient
- fixed formatting of system/controlDict functions entry

- pedantic change: use 'return 0' instead of 'return(0)' in the applications,
  since return is a C/C++ keyword, not a function.
2009-02-18 08:57:10 +01:00
Mark Olesen
844211a940 Merge commit 'OpenCFD/master' into olesenm 2009-02-06 21:19:42 +01:00
mattijs
9b0bebec00 making overwrite work 2009-02-06 15:12:24 +00: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
6d57bb4e7b added PackedBoolList typedef (used everywhere) and improved PackedList
- new members:  capacity(), two-argument resize()/setSize(), const storage()
- new static members: max_value(), packing(), etc.
2009-01-21 11:30:10 +01:00
Mark Olesen
246d569c4d consistency update for null pointers
- uniform use of reinterpret_cast<foo*>(0) instead of
  reinterpret_cast<foo*>(NULL)

- make all static null() members inline since they are really only a cast:
      "*reinterpret_cast<foo*>(0)"
2009-01-16 10:15:49 +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
c65a40d57d don't need shrink before List::transfer(DynamicList&) anymore 2008-12-12 14:20:56 +01:00
mattijs
b352c06f0f Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-11-21 15:19:25 +00:00
henry
ecb510e914 Changed "]]" to "] ]" to keep old versions of flex happy. 2008-11-20 22:13:47 +00:00
Mark Olesen
e3c70a839b Merge commit 'OpenCFD/master' into olesenm 2008-11-19 13:06:49 +01:00
henry
7c0048e878 Added line number counting, more accommodating point parsing and updated
handling of "uniform", "mixed" and "polygonal" face lists.  Now converts
.cas files as well as .msh files.
2008-11-18 14:57:44 +00:00
mattijs
ef19e4aab4 better dualisation 2008-11-18 12:35:43 +00:00
Mark Olesen
345df1e970 Merge commit 'OpenCFD/master' into olesenm 2008-11-05 10:42:05 +01:00
Mark Olesen
5d0b3348c5 can call Allwmake scripts directly instead of with ( cd foo && ./Allwmake ) 2008-11-05 10:39:06 +01:00
mattijs
0f05c04153 sample files 2008-10-29 12:12:42 +00:00
Mark Olesen
eba9bbf0d8 cosmetics 2008-10-28 01:59:42 +01:00
Mark Olesen
9a4de95354 made xfer constructors explicit, with trickle down to polyMesh/fvMesh calls 2008-10-27 13:14:07 +01:00
mattijs
0dc639e90a switch off functionObjects 2008-09-28 19:27:04 +01:00
Mark Olesen
f73739c79e modified remaining Allwmake scripts to run from anywhere 2008-09-19 14:47:06 +02:00
mattijs
b1ddfaddd4 no space after block code 2008-09-10 13:58:02 +01:00
mattijs
4773de4695 \r handling 2008-09-04 21:49:11 +01:00
Mark Olesen
7be206a5f3 Be pickier about only running certain scripts from the cwd 2008-08-09 18:50:27 +02:00
mattijs
7d9b0b103d handle marked internal faces 2008-08-06 10:24:19 +01:00
mattijs
c647881d7b remove override option since goes to constant anyway 2008-08-06 10:24:01 +01: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
b42e13583a More cleanup on headers/source for doxygen
- it also found things like size_t instead of size_type in fileName class
2008-07-22 11:12:40 +02:00
Mark Olesen
c7a7dc443c extended the conversion library and utilities
library:
  * routines for managing cellTable and boundaryRegion
  * writing ensight files and parts
  * mesh reader/writer for STARCD

utils:
  * star4ToFoam
  * foamToStarMesh
  * foamToEnsightParts
2008-07-04 16:26:22 +02:00
Mark Olesen
d8b29eb7ef added 'conversion' library
* started with polyDualMesh, but add mesh reader/writers in the future
2008-07-04 09:57:43 +02:00
Mark Olesen
69bcc1baad Merge commit 'OpenCFD/master' into olesenm 2008-06-26 14:08:49 +02:00
andy
47673b653f added overwrite flag 2008-06-26 12:24:18 +01:00