Commit Graph

2366 Commits

Author SHA1 Message Date
Arne Morten Kvarving
d5d3987b3c added: singleton entry point for stb image
the header can only be used once. we need this wrapper
class with multiple texture material types.
2019-03-09 15:59:16 +01:00
Knut Morten Okstad
d54b89b887 Added: Helper method SIMoutput::extractNodeVec.
This method is used instead of ASMbase::extractNodeVec,
and accounts for the zero-dof nodes due to ignored patches.
2019-03-06 18:25:25 +01:00
Knut Morten Okstad
c7662e58a8 Fixed: Missing check for empty patch (avoid crash when ignoring patches).
Added: Use the nodeType array to flag nodes associated with empty patches.
2019-03-06 18:25:07 +01:00
Knut Morten Okstad
7384bbb5d0 Fixed: Index error when saving projected fields for multi-patch models.
Changed: 1-based Patch ID in the VTF files.
2019-03-06 18:17:15 +01:00
Knut Morten Okstad
f95245c725 Added: More profiling of basis and solution evaluation methods 2019-03-06 09:24:54 +01:00
Arne Morten Kvarving
a63bf7520b fixed: avoid expensive global basis function lookups 2019-03-06 09:24:54 +01:00
Knut Morten Okstad
a75f054e4d Fixed: The noNurbs member is not set at this point 2019-03-01 16:35:12 +01:00
Knut Morten Okstad
b32877d37a Added: More basis function debug output.
Changed: Moved around some 0.5 scaling factors.
2019-03-01 08:25:15 +01:00
Knut Morten Okstad
0a9c56f2bf Changed: The CoordinateMapping unit tests do not depend on SIM 2019-03-01 08:25:15 +01:00
Knut Morten Okstad
9ac5c119d4 Added: Abort the adaptive loop if NaN in the solution.
Changed: Inline the saveErrors method since only used once.
2019-03-01 08:25:15 +01:00
Knut Morten Okstad
ba08543867 Added: Support for tag <patch> or <patches> for in-lined g2 geometry
instead of via file (which still is supported).
Changed: Removed some code duplication on reading of patch geometry.
The readPatches method is no longer virtual and updates its myModel member.
2019-03-01 08:25:15 +01:00
Knut Morten Okstad
4b5e8da47b Fixed: Interpretation of the edge direction parameter in getParametricLength.
Now it is consistent with the tensor spline version.
Fixed: Potential memory leak on failure due to not releasing the LocalIntegral.
2019-02-19 07:13:30 +01:00
Arne Morten Kvarving
b224dd7d8d fixed: off by one error in hessian calculations 2019-02-19 07:13:30 +01:00
Knut Morten Okstad
e31bca84f1 Changed: Initialize the rational variable outside the createG2 method,
such that discretization==LRNurbs can be accounted for when generating
2019-02-19 07:13:30 +01:00
Arne Morten Kvarving
b892a8b2c1 added: ASMu2Dnurbs 2019-02-19 07:13:30 +01:00
Arne Morten Kvarving
146d4fbf0f changed: introduce computeBasis wrapper functions
to make evaluations overridable in child classes
2019-02-19 07:13:30 +01:00
Arne Morten Kvarving
b3b7846332 changed: move bezier bases to protected scope
and some reorganization of calculations to fix usage
with shared models and mixed
2019-02-19 07:13:30 +01:00
Knut Morten Okstad
c2162ab8db Changed: Unified the periodicity handling into SIMinput and introducing
a virtual method closeBoundaries in ASMbase to avoid some type casting.
Some other minor cosmetic changes in SIM2D an SIM3D to make them more similar.
2019-02-07 07:44:16 +01:00
Knut Morten Okstad
34ce829e44 Moved some beam-specific attributes and associated methods to
the elastic beam application, the only place it has any relevance
2019-02-06 10:46:37 +01:00
Arne Morten Kvarving
ce23569831 fixed: projection basis from file in ASMu2Dmx 2019-02-06 09:18:04 +01:00
Arne Morten Kvarving
6eebff053e fixed: fix continuity for inserted lines in ASMu2Dmx::refine 2019-02-06 09:18:04 +01:00
Arne Morten Kvarving
7c393572bc added: keep lines of reduced continuity in ASMmxBase::raiseBasis 2019-02-06 09:18:04 +01:00
Arne Morten Kvarving
f49c5940e9 added: output projection and refinement bases to eps in ASMu2Dmx 2019-02-06 09:18:04 +01:00
Arne Morten Kvarving
d6997de5d1 added: helper for building a spline basis from knot vector and multiplicities 2019-02-06 09:18:04 +01:00
Arne Morten Kvarving
27844e560d jenkins: add support for sidestreams
these are modules which are cloned, but not built
2019-02-01 11:07:28 +01:00
Knut Morten Okstad
328e1b5b5c Added: Reset number of space dimensions if smaller value on file,
or if the dim attribute is specified in the geometry tag
2019-01-31 15:19:37 +01:00
Knut Morten Okstad
48788aa3c6 Added: Invoke finalizeElement also in the ASMstruct::diracPoint method 2019-01-31 15:19:37 +01:00
Knut Morten Okstad
6b7eac88a5 Added: Constraints in local coordinate system for 1D 2019-01-31 15:19:37 +01:00
Knut Morten Okstad
3476eb9a93 Fixed: getRHSVector should work when no A-matrices in case we are doing
the right-hand-side only and we are integrating external element loads
2019-01-31 15:19:37 +01:00
Arne Morten Kvarving
9f894f0312 fixed: vector should be sized as number of refine nodes, not number of projection nodes 2019-01-30 08:17:20 +01:00
Knut Morten Okstad
e92958386b Added: Read projection basis from a separate file 2019-01-26 18:45:16 +01:00
Arne Morten Kvarving
c431116826 Added: Refinement of projection basis in ASMu2D.
According to Kjetil, this should be sufficient.
2019-01-26 18:45:16 +01:00
Knut Morten Okstad
568904e28d Fixed: Move evalProjSolution implementations to ASMs2D and ASMu2D 2019-01-26 18:45:16 +01:00
Knut Morten Okstad
c3f39e8749 Added: Support separate projection basis in 2D.
Changed: Let SIMgeneric::createDefaultModel return the first created patch.
2019-01-26 18:45:16 +01:00
Arne Morten Kvarving
1f3be6906f Unify ASMs2D(mx)::assembleL2matrices and ASMu2D(mx)::assembleL2matrices 2019-01-26 18:45:16 +01:00
Arne Morten Kvarving
99796c2279 Changed: Move projection basis handling from ASMs2Dmx and ASMu2Dmx
to ASMs2D and AMSu2D, respectively
2019-01-26 18:45:16 +01:00
Knut Morten Okstad
971dee4e3f Added: Convenience methods ASMmxBase::raiseBasis 2019-01-26 18:45:16 +01:00
Knut Morten Okstad
6017144ad9 Added: Read projection basis from a separate file 2019-01-26 18:42:02 +01:00
Knut Morten Okstad
21882ff4a3 Fixed: Override evalProjSolution in ASMs1D to account for different basis 2019-01-26 18:42:02 +01:00
Arne Morten Kvarving
a424b2e731 Added: 1D spline fields class 2019-01-26 18:42:02 +01:00
Arne Morten Kvarving
3b3329b604 Added: Support separate projection basis in ASMs1D 2019-01-26 18:41:50 +01:00
Knut Morten Okstad
5559142d53 Added: Fields container for the projected secondary solution in NormBase,
to be used when the secondary solution is projected onto a separate basis
2019-01-24 11:57:58 +01:00
Knut Morten Okstad
693db51a83 Added: Pointer to spline object for separate projection basis.
Changed: Renamed geometry basis spline pointer to geomB.
Changed: Small differences between ASMs2Dmx and ASMs3Dmx I believe should not be.
2019-01-24 11:57:58 +01:00
Knut Morten Okstad
c7ab4a3475 Changed: SIMbase::fieldProjections now checks whether fields are needed
to represent the projected solution through a virtual method in ASMbase.
Skip projection of analytical solution when using separate projection basis.
This is not implemented yet, so to avoid result mis-interpretation, we don't
fall back to the primary basis but skip the entire projection instead.
Let SIMbase::projectAnasol return false when no analytical solution present.
2019-01-24 11:57:58 +01:00
Knut Morten Okstad
2f9ac18a81 Fixed: Removed LR::-prefixing of the basis argument in LR-scoped methods,
to avoid doxygen complaints.
Changed: Two more range-based for loops.
2019-01-23 20:40:30 +01:00
Arne Morten Kvarving
4f703e498d added: store errors to text files for inspection 2019-01-23 09:47:15 +01:00
Arne Morten Kvarving
8e304e24a7 added: symmetrized version of beta refinement 2019-01-23 09:47:15 +01:00
Arne Morten Kvarving
0f05d5c9f3 changed: ignore empty vectors in solution transfer 2019-01-23 08:42:17 +01:00
Arne Morten Kvarving
ed3676054d fixed: TimeStep::reset with no <step> tags 2019-01-23 08:42:17 +01:00
Knut Morten Okstad
950b281fe9 Added: Methods for adaptive refinement of 1D patches.
Changed: ASMunstruct no longer inherits ASMbase, such that
ASMs1D can now be both an ASMstruct and ASMunstruct.
2019-01-22 21:05:55 +01:00