Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-elasticity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
agnumpde
dune-elasticity
Commits
afe75e38
Commit
afe75e38
authored
4 years ago
by
oliver.sander_at_tu-dresden.de
Browse files
Options
Downloads
Patches
Plain Diff
Improve TeX output of micromorphic test suite
parent
c95eae20
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
quasiconvexity-micromorphic-testsuite/render-quasiconvexity-test-results.py
+11
-4
11 additions, 4 deletions
...romorphic-testsuite/render-quasiconvexity-test-results.py
with
11 additions
and
4 deletions
quasiconvexity-micromorphic-testsuite/render-quasiconvexity-test-results.py
+
11
−
4
View file @
afe75e38
...
...
@@ -19,7 +19,7 @@ def renderResult(filePrefix, texFile):
# Create a new 'Render View'
renderView1
=
CreateView
(
'
RenderView
'
)
renderView1
.
ViewSize
=
[
10
00
,
695
]
renderView1
.
ViewSize
=
[
8
00
,
695
]
renderView1
.
InteractionMode
=
'
2D
'
renderView1
.
AxesGrid
=
'
GridAxes3DActor
'
renderView1
.
StereoType
=
'
Crystal Eyes
'
...
...
@@ -38,7 +38,7 @@ def renderResult(filePrefix, texFile):
# create new layout object 'Layout #1'
layout1
=
CreateLayout
(
name
=
'
Layout #1
'
)
layout1
.
AssignView
(
0
,
renderView1
)
layout1
.
SetSize
(
1247
,
695
)
layout1
.
SetSize
(
800
,
695
)
# ----------------------------------------------------------------
# restore active view
...
...
@@ -160,10 +160,12 @@ texFile = open(r"quasiconvexity-test-micromorphic-results.tex","w+")
texFile
.
write
(
"
\documentclass[a4paper,10pt]{article}
\n
"
)
texFile
.
write
(
"
\\
usepackage[utf8]{inputenc}
\n
"
)
texFile
.
write
(
"
\\
usepackage{graphicx}
\n
"
)
texFile
.
write
(
"
\\
usepackage{xcolor}
\n
"
)
texFile
.
write
(
"
\\
usepackage{hyperref}
\n
"
)
texFile
.
write
(
"
\\
title{Minimizers of a micromorphically relaxed magic functional}
\n
"
)
texFile
.
write
(
"
\\
author{Oliver Sander}
\n
"
)
texFile
.
write
(
"
\\
setlength{
\\
parindent}{0pt}
\n
"
)
texFile
.
write
(
"
\\
begin{document}
\n
"
)
...
...
@@ -204,6 +206,11 @@ for L_c in [1,10,100]:
if
(
energy
):
texFile
.
write
(
"
Final energy with regularization:
"
+
str
(
energy
)
+
"
\n\n
"
)
# Search for trust-region underflow
if
(
re
.
search
(
"
UNDERFLOW
"
,
line
)):
texFile
.
write
(
"
\\
textcolor{red}{
\\
textbf{Trust-region underflow (function is not a minimizer)!}}
\n\n
"
)
# Use ParaView to render the result
L_c_string
=
format
(
L_c
,
'
f
'
)
x0_string
=
format
(
x0
,
'
f
'
)
...
...
@@ -212,9 +219,9 @@ for L_c in [1,10,100]:
# Include the creates image into the tex file
texFile
.
write
(
"
\\
begin{center}
\n
"
)
texFile
.
write
(
"
\\
includegraphics[width=
\\
textwidth]{
"
+
prefix
+
"
-det}
\n\n
"
)
texFile
.
write
(
"
\\
includegraphics[width=
0.6
\\
textwidth]{
"
+
prefix
+
"
-det}
\n\n
"
)
texFile
.
write
(
"
\\
vspace{0.05
\\
textheight}
\n\n
"
)
texFile
.
write
(
"
\\
includegraphics[width=
\\
textwidth]{
"
+
prefix
+
"
-K}
\n
"
)
texFile
.
write
(
"
\\
includegraphics[width=
0.6
\\
textwidth]{
"
+
prefix
+
"
-K}
\n
"
)
texFile
.
write
(
"
\\
end{center}
\n
"
)
texFile
.
write
(
"
\end{document}
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment