Commit Graph

489 Commits

Author SHA1 Message Date
Arne Morten Kvarving
59d2608b3d SIMCoupledSI: max iterations as a function of timestep 2021-06-18 13:57:59 +02:00
Arne Morten Kvarving
68e317a7dd SIMCoupledSI: add support for relaxation with optional aitken acceleration 2021-06-18 13:57:59 +02:00
Knut Morten Okstad
ee17cff565 Fixed: Account for small round-offs in start time for adaptive loop.
Changed: Ignore pre-refinement tags when mesh already is refined.
2021-06-11 10:35:54 +02:00
Knut Morten Okstad
574b2974a4 Changed: Store basis on restart file only after each mesh refinement 2021-06-11 10:35:54 +02:00
Knut Morten Okstad
428ff24a95 Changed: Made SIMsolver::[s|deS]erialize() methods virtual.
Added: Optional log message when serializing simulator state.

Fixed (temporarily): Subtract one from the restartStep argument
to HDF5Restart::readData(), to compensate for the change in the
previous commit. Consider undoing this later, and instead update
all restart regression tests specifying a restart time level.
2021-06-11 10:30:44 +02:00
Knut Morten Okstad
6f96812f0d Changed: Set time levels for restart files by incrementing a private
counter instead of calculating from time step number and stride.
The first time level will then be 0 (not 1) as for the visualization data.
Fixed: Always store geometry basis for the first time level saved.
Compare with last time step saved instead of mod'ing the time step counter
when deciding whether to save new data, in case not invoked every time step.
2021-06-11 10:30:44 +02:00
Arne Morten Kvarving
6911ae08c7 Fixed: Use separate ProcessAdm object for restart output when parallel 2021-06-11 10:30:44 +02:00
Knut Morten Okstad
8775b4ddd0 Added: getProcessAdm() in some simulator template classes 2021-06-11 10:30:44 +02:00
Knut Morten Okstad
6dc48a87d6 Changed: The projection method prefixes are now extracted directly
from the SIM object inside the HDF5Writer::writeSIM instead of
storing them in a class member - to ensure consistency.
Then we don't need the DataExporter::setNormPrefixes method.
2021-06-10 09:21:47 +02:00
Knut Morten Okstad
77ac8840bd Added: App-specific pre-refinement after reading the model input 2021-05-21 15:00:59 +02:00
Knut Morten Okstad
06580f66c7 Changed: Set initial time level for restart runs from previous.
The methods getTimeLevel() and getWritersTimeLevel() are then
no longer needed and removed for the sake of clarity.
Also removed unused method realTimeLevel(), which is incorrect
if used in restart runs with changed data dump stride.
Added: Optional print message when dumping results.
2021-05-10 06:25:55 +02:00
Knut Morten Okstad
802ad3c441 Added: Interface for the preprocess() method in SIMadmin.
Changed: SIMadmin::printHeading() is now public.
2021-04-08 15:00:44 +02:00
Knut Morten Okstad
05a6a068a3 Changed: Replaced getMyElementNums() by getGlobalElementNums() and
use getGlobal[Element|Node]Nums in the unit tests, for consistency.
Also use static functions instead of Lambdas in file scope.
2021-04-08 15:00:44 +02:00
Knut Morten Okstad
22f553ce4b Changed: Non-virtual SIM3D::addConstraint --> addLineConstraint.
Changed: Public method SIMinput::addConnection no longer virtual.
It now invokes the virtual method connectPatches using an ASM::Interface
object to pass the connectivity definition instead, for convenience.
Added: Offset attribute on the topology tag.
2021-02-10 09:05:50 +01:00
Arne Morten Kvarving
f6100fd9e7 changed: allow HDF5 output with lagrangian bases 2020-10-01 14:31:34 +02:00
Arne Morten Kvarving
310f8c5494 fixed: pass the correct process admin to the hdf5 writer
this matters because it holds information about the partitioning.
in particular, this is necessary to get correct results with graph
partitioning.
2020-09-28 10:15:45 +02:00
Arne Morten Kvarving
6e5f087551 fixed: wrap the multi-patch refinement in a loop
if not, neighbour patches will miss the refinements
imposed by the extended refinement domain for a patch.
2020-04-30 12:35:51 +02:00
Arne Morten Kvarving
37f683ca69 save projections in the internal adaptive solver template 2020-04-29 12:55:08 +02:00
Arne Morten Kvarving
c5f29c0b14 added: solver template for simulators with internal adaptation 2020-04-28 12:04:33 +02:00
Arne Morten Kvarving
f62f7d15bc Required changes for stationary, semi-implicit simulations 2020-04-24 10:40:00 +02:00
Arne Morten Kvarving
a64a40de09 added: save result points in AdaptiveSIM 2020-04-23 10:52:35 +02:00
Arne Morten Kvarving
00f9fd8a03 added: conservative form support in EqualOrderOperators::Weak::Advection 2020-04-16 10:56:01 +02:00
Knut Morten Okstad
c5c4f621c8 Fixed: Avoid writing unnecessary restart file in restart regression tests 2020-03-05 15:06:34 +01:00
Knut Morten Okstad
35873f6e97 Changed: Removed need for a dummy integrand in some unit tests 2019-11-24 07:06:38 +01:00
Arne Morten Kvarving
44c9a5a7be added: support for implicit LMM methods 2019-11-04 13:01:20 +01:00
Arne Morten Kvarving
1bdfec61cd fixed: missing AB1 support 2019-11-04 13:01:20 +01:00
Arne Morten Kvarving
a02a9a0251 added: support for explicit linear multistep methods 2019-10-18 16:26:06 +02:00
Arne Morten Kvarving
f8d3af7405 added: linear parameter in SIMExplicitRK
set this to mark operator as linear. this disables
repeated assembly, and reuses factorization if a LU
solver is utilized.
2019-08-16 12:49:00 +02:00
Arne Morten Kvarving
d6becd43ec added: standalone setting in SIMExplicitRK
for controlling output to terminal
2019-08-16 12:49:00 +02:00
Arne Morten Kvarving
42493fcf5a changed: group parameters in arrays 2019-05-21 12:58:29 +02:00
Knut Morten Okstad
3c9529c072 Changed: Simplified the boundary nodes extraction a bit.
Always use getBoundaryNodes method and made getEdgeNodes private.
Think there were some small undetected errors also
(local vs. global node numbers).
2019-04-02 09:26:55 +02: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
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
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
Arne Morten Kvarving
417525cd3b changed: simplify some CompatibleOperators
use add and outer_product instead of hand-rolled loops
2019-01-22 12:45:12 +01:00
Arne Morten Kvarving
59ad507d3a changed: split HDF5 class in 3 parts
- HDF5Writer writes
- HDF5Reader reads
- HDF5Restart reads and writes restart data
2018-11-22 09:56:55 +01:00
Arne Morten Kvarving
b361d9b341 remove HDF5toVTx application
outdated. a new one will be written in python
2018-11-02 12:32:52 +01:00
Arne Morten Kvarving
82074afc22 changed: redo the HDF5 layout
this makes all information available from hdf5 file only.
therefore, remove the xml writer
2018-11-02 12:32:52 +01:00
Arne Morten Kvarving
74257c1c51 fail if given test defitition is nonexistent 2018-11-02 12:32:52 +01:00
Arne Morten Kvarving
7d77182295 added: send element wise norms and projections to data exporter 2018-11-02 12:32:52 +01:00
Arne Morten Kvarving
6494f32908 added: ability to run hdf5 tests in parallel 2018-11-02 12:32:52 +01:00
Arne Morten Kvarving
158fbbdf1b added: pipe failed vtf/hdf5 test simulations to failed.log 2018-11-02 12:32:52 +01:00
Arne Morten Kvarving
b37578eefd fixed: remove hdf5 files used in restart tests before executing test
to avoid confusing results if tests are re-run in the same build
directory.
2018-11-01 09:41:58 +01:00
Eivind Fonn
bf36fbc225 Changed: Check app return code in regtest.sh 2018-10-31 14:26:36 +01:00
Arne Morten Kvarving
bd642084c4 fixed: remove unused LR flag
causes issues
2018-10-23 14:23:07 +02:00
Arne Morten Kvarving
5fe3f53dfb added: add IFEM-Boussinesq to common app build CMakeLists.txt 2018-09-05 13:23:01 +02:00
Knut Morten Okstad
89e11b3525 Changed: Default value of rCond is now 1.0,
to avoid issues in sub-classes not using this feature
2018-08-31 06:52:40 +02:00
Arne Morten Kvarving
f8153480dd added: add support for adaptive simulators using the ISolver interface
in particular, this allows adaptivity for stationary, nonlinear systems
such as NavierStokes or Boussinesq.
2018-08-22 15:51:39 +02:00
Arne Morten Kvarving
77b704b5c0 suppress some more expected cppcheck warnings 2018-08-16 13:33:33 +02:00
Arne Morten Kvarving
a10bce9e35 reduce scope of variables 2018-08-16 13:32:15 +02:00