- 03 Oct, 2018 2 commits
-
-
Mark Olesen authored
- allows reuse for other purposes
-
Mark Olesen authored
- improved move constructors/assignments for fileName, string, etc
-
- 05 Oct, 2018 2 commits
-
-
Mark Olesen authored
- instead of dict.lookup(name) >> val; can use dict.readEntry(name, val); for checking of input token sizes. This helps catch certain types of input errors: { key1 ; // <- Missing value key2 1234 // <- Missing ';' terminator key3 val; } STYLE: readIfPresent() instead of 'if found ...' in a few more places.
-
Mark Olesen authored
- the opposite problem from issue #762. Now we also test if the input token stream had any tokens at all. - called by the dictionary get<> and readEntry() methods.
-
- 28 Sep, 2018 5 commits
-
-
Mark Olesen authored
- simply combines (rootPath()/globalCaseName())
-
Mark Olesen authored
- Can now retrieve or set a column/row of a tensor. Either compile-time or run-time checks. Get t.col<1>(); t.col(1); t.row<1>(); t.row(1); Set t.col<1>(vec); t.col(1,vec); t.row<1>(vec); t.row(1,vec); The templated versions are compile-time checked t.col<3>(); t.col<3>(vec); The parameter versions are run-time checked t.col(3); t.col(3,vec); ENH: provide named access to tensor/tensor inner product as inner()
-
Mark Olesen authored
-
Mark Olesen authored
-
Mark Olesen authored
-
- 27 Sep, 2018 2 commits
-
-
Andrew Heather authored
Helper function to calculate the current face area vs the area returned from the current point locations. Useful for ACMI-type baffles where we scale the face areas without moving points.
-
Mark Olesen authored
- nBoundaryFaces() is often used and is identical to (nFaces() - nInternalFaces()). - forward the mesh nInternalFaces() and nBoundaryFaces() to polyBoundaryMesh as nFaces() and start() respectively, for use when operating on a polyBoundaryMesh. STYLE: - use identity() function with starting offset when creating boundary maps. labelList map ( identity(mesh.nBoundaryFaces(), mesh.nInternalFaces()) ); vs. labelList map(mesh.nBoundaryFaces()); forAll(map, i) { map[i] = mesh.nInternalFaces() + i; }
-
- 20 Sep, 2018 1 commit
-
-
mattijs authored
-
- 19 Sep, 2018 4 commits
-
-
Mark Olesen authored
Using: OpenFOAM-plus (see www.OpenFOAM.com) Build: plus-7ab57cc5 (OPENFOAM=1807) Arch: LSB;label=32;scalar=64 - This can be useful for development versions, or when the version at build time uses some other naming scheme (#1010)
-
mattijs authored
-
Mark Olesen authored
-
Mark Olesen authored
-
- 13 Sep, 2018 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- simple check for unique and non-negative point labels
-
- 11 Sep, 2018 1 commit
-
-
Andrew Heather authored
-
- 10 Sep, 2018 3 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- replaces previous pointer conversion
-
Mark Olesen authored
- uses int, without enclosing brackets.
-
- 29 Aug, 2018 1 commit
-
-
mattijs authored
-
- 27 Aug, 2018 1 commit
-
-
mattijs authored
-
- 09 Aug, 2018 2 commits
-
-
Andrew Heather authored
-
Mark Olesen authored
- more consistent with dictionary method naming. The get<> or getList<> returns a value, doesn't read into a existing location.
-
- 08 Aug, 2018 4 commits
-
-
Mark Olesen authored
STYLE: use initial hash size 128 instead of 100 in a few places
-
Mark Olesen authored
- there were previously no hashing mechanisms for lists so they would fall back to the definition for primitives and hash the memory location of the allocated List object. - provide a UList::Hash<> sub-class for inheritance, and also a global specialization for UList<T>, List<T> such that the hash value for List<List<T>> cascades properly. - provide similar function in triFace to ensure that it remains similar in behaviour to face. - added SymmHash to Pair, for use when order is unimportant. STYLE: use string::hash() more consistently - no particular reason to use Hash<word>() which forwards to string::hash() anyhow
-
Mark Olesen authored
- allows single or multiple entries
-
Mark Olesen authored
- With argList::noFunctionObjects() we use the logic added in 4b933332 (issue #352) By removing the '-noFunctionObjects' option, we automatically suppress the creation of function-objects via Time (with argList as a parameter). There is generally no need in these cases for an additional runTime.functionObjects().off() statement Use the argList::noFunctionObjects() for more direct configuration and reduce unnecessary clutter in the -help information. In previous versions, the -noFunctionObjects would have been redundant anyhow, so we can also just ignore it now instead.
-
- 07 Aug, 2018 2 commits
-
-
Mark Olesen authored
- allows use with any container with begin(), end() and where the "*iterator" dereference returns a label, which is used for indexing into the list of points. This container could be labelUList, bitSet, labelHashSet, etc
-
Mark Olesen authored
- extract a list of the HashTable values, optionally sorted.
-
- 06 Aug, 2018 3 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- when both min and max are required, this is more efficient than traversing the list twice.
-
Mark Olesen authored
-
- 03 Aug, 2018 4 commits
-
-
Mark Olesen authored
Style changes: - use lookupObjectRef instead of using const_cast - use tmp::New factory
-
Mark Olesen authored
- signedDistance() method is like distance() but retains the positive/negative sign for the side of the plane. - the sign() method returns the sign as -1,0,+1 integer for classification purposes where it is important to distinguish between a zero value and a positive value (eg, for cutting). Optional tolerance can be supplied to round for zero. - refactor and inlined simple and frequently used methods. - add boundBox faceCentre() method, which can be useful for creating clipping planes from a bounding box. Relocated treeBoundBox faceNormals to boundBox since they apply equally there - the meaning of the faces (x-min, x-max, etc) is the same, even if the point addressing for the faces differs.
-
Mark Olesen authored
- rationalized code dealing with extraction of name or indices from coordinateSystems, polyBoundaryMesh, faBoundaryMesh, fvBoundaryMesh, ZoneMesh to use internal implementations that allow direct searching/matching without building an intermediate list of names. - simpler and more efficient handling of patch group matching.
-
Mark Olesen authored
- can be used in predicate matching - getNameOp, getTypeOp for accessing the name() and type() of objects
-
- 02 Aug, 2018 1 commit
-
-
Mark Olesen authored
- centralizes IOobject handling and treatment of alternative locations. If an alternative file location is specified, it will be used instead. - provide decompositionMethod::canonicalName instead of using "decomposeParDict" in various places.
-