Commit Graph

2819 Commits

Author SHA1 Message Date
kmo
58ab50d36d Bugfix: Corrected the interpretation of I and J in ASMu2D::constrainCorner.
Added an XML-input file for adaptive linear-elastic analysis of the L-shape.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1561 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
01b608ca13 Added support for the <fixpoint> XML tag within <boundaryconditions>.
This can not be used in adaptive simulations though,
because the ASMu2D::constrainNode method is not implemented yet.

Removed the virtual method setQuadratureRule in SIM[123]D.
Instead a common implementation is added in SIMbase.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1560 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
8644fc6c9f Added <bodyforce> XML tag for linear elasticity.
Cleaned up some memory leakage issues for adaptive simulations.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1559 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
40ed14a9e1 Added support for the <neumann> XML tag on SIMbase level within the
<boundaryconditions> tag. The new tag takes all the old formats for
specifying surface pressure variations in addition to expressions.
This makes the <constantpressure> and <linearpressure> tags in the
elasticity solver obsolete and have therefore been removed.

Function expressions are now also available for Dirichlet conditions.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1558 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
66aeb877de Moved the expression functions to separate source files.
Added the possibility to also include the time ("t") in the expressions.
Added some more function parsing methods in Functions.C

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1557 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
ec1e4dbc83 Added XML-based input parsing for the finite deformation solvers.
This also includes most of the nonlinear formulation options
previously only available as command-line arguments.

The old command-line options are still supported, however, if
also specified on the input file, the command-line options will
be overrridden (this in contrast to the more general options).

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1556 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
26fbe53eca Moved construction of the LinearElasticity integrand to the parse methods.
This is to allow for specification of the axiSymmetry and plane strain
options on the XML input file instead of as command-line options.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1555 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
1dc74eb13f Updated some regression tests due to a renewed gno-file.
Added a new XML-input file for LinearElasticity and updated another one.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1554 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
1d80d80b65 Some cosmetic changes in SIMbase::parse (XML-version).
Added a virtual getPrioritizedTags method in SIMbase scope, since that is
where the keywords involved are known. Removed pointless invokation of the
handlePriorityTags method from within the application-specific blocks.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1553 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
a849f1fa17 Use utl::getValue to extract nonlinear solution parameters from the XML-tags.
Use nGauss[1] when integrating energy norms also for nonlinear problems.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1552 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:26 +02:00
kmo
13412d0a8a Fixed: Minor correction of the discretization option when it is specified on the XML input file
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1551 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
kmo
d2557be3dc Added some still missing author banners...
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1550 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
akva
f2f1edde90 changed: for >= 3.2, PETSc generates a nice .cmake file for us to include
simplifies the cmake rule for >= 3.2, while keeping the old for version
< 3.2. hopefully the old block can be removed in not too far a future

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1547 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
akva
28025a90c4 changed: simplify PETSc cmake rules
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1546 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
akva
59d6e1e183 Changed: Reduce code duplication in ASMs2D::quasiInterpolate.
Use indices instead of duplicating the for loops.
Use .resize() instead of incrementally resizing vectors through push_back.
Exploit the tensor product nature of the algorithm to reduce code duplication

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1541 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
akva
75e6b3f4ee changed: get rid of confusing use of dimension variable
introduce a perknot variable instead. this is the true meaning
of the entity and we avoid the confusing increase/decrease cycle

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1540 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
akva
2f0bd93bff silence compiler warnings
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1537 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
kjetijo
989ef00183 Bugfix: Copy-paste error in xml parsing of analytic solutions
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1536 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
kjetijo
daac57f90c Bugfix: Linear Elasticity crashed when trying to write projected solution to vtf while doing eigenvalue analysis
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1535 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:25 +02:00
kmo
595f1456b3 Removed an elegant array initialization in SIMoptions constructor which appeared to be non-standard (kongull didn't like it...)
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1531 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:24 +02:00
kmo
435c515af9 Changed: Moved ASMs3D::globalL2projection to file ASMs3Drecovery.C
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1530 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:24 +02:00
akva
aa738cedf3 fixed: broken parsing of partioning tags from xinp files
1) encountering a partitioning with a different number of processors is
not an error. we should just silently continue. this allows having
several different partitionings specified in the file

2) a refactoring missed the fact that nGlPatches is read from the
partitioning, thus all nodes have to process all lines, not only its part

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1529 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:24 +02:00
kmo
971ec39ec5 Added: VTF output of projected fields and associated norms in Adaptive simulation. Print of exact errors and effectivity index in Adaptive simulation
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1528 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:24 +02:00
kmo
9d56133989 Changed: Modified SIMbase:writeGlvS such that it also can be used by the Chorin substep solvers
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1523 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:24 +02:00
kmo
44a164e1b4 Removed some parameters from the signature of some SIMbase methods since they now may be accessed from the SIMoptions member
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1522 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:24 +02:00
kmo
d71c9c1c50 Moved parsing of expression functions for analytic solutions to two new AnaSol constructors
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1520 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
kmo
a1d2007ac2 Extended the XML input to also take some options previously available as command-line arguments only
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1519 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
kmo
c958d74c3e Added: Print of global effectivity index.
Fixed: Index calculation for refinement error and printout of global norms.
This also reverts the previous fix r1517 which I don't think was correct.

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1518 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
kmo
39e6ac8c63 Added: Calculation of local effectivity indices on error estimates for Elasticity and Poisson
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1516 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
kmo
1ba789aafb Changed: AdaptiveSIM is now able to do the mesh adaption based on error estimates from a user-selected recovered solution.
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1515 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
kmo
2ed1238893 HDF5Writer fixed, part II: The r1505 fix was not complete, because the getNorm method now may update its first argument (in case of no analytical solution). Therefore we need this double loop indices to get it right (same as in XMLWriter).
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1514 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
akva
d76ff2fe10 fixed: VTFx writer with adaptive/time dependent geometries
the results were always associated with the first set of geometry
blocks

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1513 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
akva
b9c3434337 fixed: we need access to the linear solution vector in the adaptive SIM
if not, we cannot store element norms in HDF5

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1510 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
akva
1bdb5787a4 fixed: since we cannot handle multi-patch yet, reset numbering at each ASMu2D instancing
this is not a proper solution, but since we have these evil globals and
no virtual interface in ASMbase, this will have to do for now

this broke adaptive simulations

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1509 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
kjetijo
2bd4b80c24 Added LR-spline stress recovery techniques (cont L2, discrete L2 working properly)
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1506 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
kmo
aa5c798988 Fixed: Corrected the norm output to VTF. It has been wrong since r1501.
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1505 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
akva
e4bc621c31 changed: move recovery related functions in ASMs3D into ASMs3Drecovery.C
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1504 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:23 +02:00
akva
47a73b693c added: support new interpolation/projection schemes in linear elasticity application
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1501 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
akva
06f59dbb8a Added: New spline interpolation/projection schemes. Credit Annette.
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1500 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
akva
5be80d8df6 cosmetics - a char should not be defaulted to false
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1498 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
akva
dc37691c8a fixed: (trivial) typo in getting started tutorial
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1497 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
kmo
99d5287a6e Fixed: VTF-output of grid deformation and velocity for FSI-simulations
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1496 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
kmo
060d8f1c37 Superconvergent recovery update: Increased the order of the polynomial expansion by one. Store the RHS vectors in a Matrix instead of StdVector for convenience.
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1494 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
kmo
d507a6d099 added: ability to solve dense systems with a matrix rhs
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1493 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
kmo
fbe0de77c5 FSI update: Some modifications to ensure the mesh mover simulator always gets the same time increment as the CFD simulator
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1491 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
kmo
df54429f90 added: use cholesky factorization for symmetric dense matrices
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1490 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
kmo
5f943074cf added: mark local recovery matrix as symmetric
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1489 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
akva
ba89bb23ee fixed: missed group close
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1488 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:22 +02:00
kjetijo
7648695ac0 Added XML parsing for adaptive simulations using LR B-splines
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1487 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:21 +02:00
kmo
43332649c6 Fixed more user-friendly prefices for the element norm fields on the VTF
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1484 e10b68d5-8a6e-419e-a041-bce267b0401d
2015-07-10 22:02:21 +02:00