<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.anl.gov/wiki_tracc/index.php?action=history&amp;feed=atom&amp;title=LS-PrePost</id>
	<title>LS-PrePost - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.anl.gov/wiki_tracc/index.php?action=history&amp;feed=atom&amp;title=LS-PrePost"/>
	<link rel="alternate" type="text/html" href="https://wiki.anl.gov/wiki_tracc/index.php?title=LS-PrePost&amp;action=history"/>
	<updated>2026-07-10T13:56:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.anl.gov/wiki_tracc/index.php?title=LS-PrePost&amp;diff=1940&amp;oldid=prev</id>
		<title>Amiot: /* Extracting non-graphical data */</title>
		<link rel="alternate" type="text/html" href="https://wiki.anl.gov/wiki_tracc/index.php?title=LS-PrePost&amp;diff=1940&amp;oldid=prev"/>
		<updated>2021-06-10T20:24:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Extracting non-graphical data&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:24, June 10, 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Extracting non-graphical data==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Extracting non-graphical data==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If LS-PrePost is to be used for extracting eg. curve data, there should be no problem using the regular &amp;quot;blind&amp;quot; prepost by  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If LS-PrePost is to be used for extracting eg. curve data, there should be no problem using the regular &amp;quot;blind&amp;quot; prepost by  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setting up a command-file &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(see [[command file]]) &lt;/del&gt;and then issuing the command:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setting up a command-file and then issuing the command:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;lsprepost -nographics c=command.file&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;lsprepost -nographics c=command.file&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Amiot</name></author>
	</entry>
	<entry>
		<id>https://wiki.anl.gov/wiki_tracc/index.php?title=LS-PrePost&amp;diff=1784&amp;oldid=prev</id>
		<title>Amiot: /* Getting started */</title>
		<link rel="alternate" type="text/html" href="https://wiki.anl.gov/wiki_tracc/index.php?title=LS-PrePost&amp;diff=1784&amp;oldid=prev"/>
		<updated>2021-02-03T18:22:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Getting started&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:22, February 3, 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To open a binary output file in LS-PrePost 2.4 from command line, use the command &amp;quot;lspp24 d3plot&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To open a binary output file in LS-PrePost 2.4 from command line, use the command &amp;quot;lspp24 d3plot&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Lspp.png|thumb|none|left|600px|alt=LS-PrePost on TRACC Cluster|LS-PrePost on TRACC Cluster]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;600px-&lt;/ins&gt;Lspp.png|thumb|none|left|600px|alt=LS-PrePost on TRACC Cluster|LS-PrePost on TRACC Cluster]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Amiot</name></author>
	</entry>
	<entry>
		<id>https://wiki.anl.gov/wiki_tracc/index.php?title=LS-PrePost&amp;diff=1773&amp;oldid=prev</id>
		<title>Amiot: Created page with &quot;=== Getting started ===  Before you use LS-PrePost on TRACC cluster you will need to load module:   module load ls-dyna/base To start LS-PrePost 2.4, use the command &quot;lspp24&quot;....&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.anl.gov/wiki_tracc/index.php?title=LS-PrePost&amp;diff=1773&amp;oldid=prev"/>
		<updated>2021-02-03T18:10:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Getting started ===  Before you use LS-PrePost on TRACC cluster you will need to load module:   module load ls-dyna/base To start LS-PrePost 2.4, use the command &amp;quot;lspp24&amp;quot;....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Getting started ===&lt;br /&gt;
&lt;br /&gt;
Before you use LS-PrePost on TRACC cluster you will need to load module: &lt;br /&gt;
 module load ls-dyna/base&lt;br /&gt;
To start LS-PrePost 2.4, use the command &amp;quot;lspp24&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To start LS-PrePost 3.0, use the command &amp;quot;lspp30&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To start LS-PrePost 3.1, use the command &amp;quot;lspp31&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To start LS-PrePost 4.0, use the command &amp;quot;lspp40&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To start LS-PrePost 4.1, use the command &amp;quot;lspp41&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
To open an input file in LS-PrePost 3.0 from command line, use the command &amp;quot;lspp30 my_input_file.k&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To open a binary output file in LS-PrePost 2.4 from command line, use the command &amp;quot;lspp24 d3plot&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:Lspp.png|thumb|none|left|600px|alt=LS-PrePost on TRACC Cluster|LS-PrePost on TRACC Cluster]]&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
LS-PrePost can be used for extracting data in an optimization sequence. As an optimization often needs numerous simulations&amp;lt;br&amp;gt;&lt;br /&gt;
to be carried out, it is preferred to use several cluster nodes which causes problems, if eg. images are to be printed showing &lt;br /&gt;
eg. stress distributions or such.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The following is referenced from http://alpha.iprod.auc.dk/wiki/index.php/Prepost_without_graphics and is valid for versions 3.x and up.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Extracting non-graphical data==&lt;br /&gt;
If LS-PrePost is to be used for extracting eg. curve data, there should be no problem using the regular &amp;quot;blind&amp;quot; prepost by &lt;br /&gt;
setting up a command-file (see [[command file]]) and then issuing the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
lsprepost -nographics c=command.file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the command file could contain something like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ascii glstat open &amp;quot;./glstat&amp;quot; 0&lt;br /&gt;
ascii glstat plot 1/2&lt;br /&gt;
xyplot 1 savefile curve_file &amp;quot;./test.curve&amp;quot; 1 all &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Extracting graphical data==&lt;br /&gt;
If you want to extract graphical data, the -nographics option will not do, as prepost needs an framebuffer / screen provided by the X-server to draw the graphics (bonus linux info at [http://en.wikipedia.org/wiki/X_Window_System wikipedia] ).&amp;lt;br&amp;gt;&lt;br /&gt;
This requires a little magic including a dummy framebuffer, on which the LS-PrePost graphics are then drawn and later on copied from to the output graphics file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Linux pr default sends all its graphic program output to the display specified in the shell variable $DISPLAY. The current value of this variable can be found using the &amp;quot;echo&amp;quot; command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$  echo $DISPLAY&lt;br /&gt;
localhost:17.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can save the value of the variable into another temporary variable using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$  export DISPLAYTEMP=`echo $DISPLAY`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Be aware that back-tics are used on the right side! On a danish keyboard layout this is made as &amp;quot;shift&amp;quot; + the button left to backspace.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A virtual frame-buffer is started using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Xvfb :7 -ac -screen 0 1600x1200x24 &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;7&amp;quot; is the number of the framebuffer and &amp;quot;1600x1200x24&amp;quot; is the resolution and color depth.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The display variable is now set to the new virtual frame-buffer as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$  export DISPLAY=:7.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prepost can now be started using a command file, as the mouse is not available as input&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$  prepost c=command.file /path/to/binaryInputFile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When the PrePost session is over, the display variable is set back to the default value using &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export DISPLAY=`echo $DISPLAYTEMP`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A complete shell script for a blind LS-PrePost session could then be saved to &amp;quot;blindpost.sh&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DISPLAYTEMP=`echo $DISPLAY`&lt;br /&gt;
Xvfb :7 -ac -screen 0 1600x1200x24 &amp;amp;&lt;br /&gt;
DISPLAY=:7.0&lt;br /&gt;
prepost c=command.file /path/to/binaryInputFile&lt;br /&gt;
DISPLAY=`echo $DISPLAYTEMP`&lt;br /&gt;
killall Xvfb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The &amp;quot;export&amp;quot; statement is not needed within command-files but only when executed directly from the terminal.&lt;/div&gt;</summary>
		<author><name>Amiot</name></author>
	</entry>
</feed>