[FEM] several Elmer fixes

- fix whitespace in the SIF writer
- Elmer GUI uses only 20 nonlinear iterations, so we should do the same (500 were also not sensible)
- don't restrict nonlinear-Newton iterations to 100, 500 might be necessary for turbulent flow
- update author
This commit is contained in:
Uwe
2023-03-22 07:07:58 +01:00
parent 4b4effed15
commit b38533d070
4 changed files with 7 additions and 5 deletions

View File

@@ -76,8 +76,8 @@ class Proxy(linear.Proxy):
)
)
obj.NonlinearIterations = (500, 1, int(1e6), 10)
obj.NonlinearNewtonAfterIterations = (3, 1, 100, 1)
obj.NonlinearIterations = (20, 1, int(1e6), 10)
obj.NonlinearNewtonAfterIterations = (3, 1, 500, 1)
# for small numbers we must set an expression because we don't have a UI,
# the user has to view and edit the tolerance via the property editor and
# this does not yet allow to view and edit small numbers in scientific notation

View File

@@ -364,7 +364,7 @@ class _Writer(object):
attrType = _TYPE_VARIABLE
if attrType is not _TYPE_VARIABLE:
self._stream.write(attrType)
self._stream.write(_WHITESPACE)
self._stream.write(_WHITESPACE)
output = self._preprocess(data, type(data))
# in case of a variable the output must be without the quatoation marks
if attrType is _TYPE_VARIABLE: