<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.nemesis-project.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.nemesis-project.org/index.php?action=history&amp;feed=atom&amp;title=Example%3AExample_Quad4i_02</id>
		<title>Example:Example Quad4i 02 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.nemesis-project.org/index.php?action=history&amp;feed=atom&amp;title=Example%3AExample_Quad4i_02"/>
		<link rel="alternate" type="text/html" href="http://www.nemesis-project.org/index.php?title=Example:Example_Quad4i_02&amp;action=history"/>
		<updated>2026-04-17T02:02:21Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>http://www.nemesis-project.org/index.php?title=Example:Example_Quad4i_02&amp;diff=2092&amp;oldid=prev</id>
		<title>Fotis at 14:19, 9 January 2008</title>
		<link rel="alternate" type="text/html" href="http://www.nemesis-project.org/index.php?title=Example:Example_Quad4i_02&amp;diff=2092&amp;oldid=prev"/>
				<updated>2008-01-09T14:19:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:19, 9 January 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Data&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Data&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;nds={1:[0.0, 0.0],&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;nds={1:[0.0, 0.0],&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;	 &lt;/del&gt;2:[9.0, 0.0],&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160;  &lt;/ins&gt;2:[9.0, 0.0],&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;	 &lt;/del&gt;3:[8.0, 8.0],&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160;  &lt;/ins&gt;3:[8.0, 8.0],&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;	 &lt;/del&gt;4:[0.0, 6.0],&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160;  &lt;/ins&gt;4:[0.0, 6.0],&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;	 &lt;/del&gt;5:[2.5, 2.0],&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160;  &lt;/ins&gt;5:[2.5, 2.0],&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;	 &lt;/del&gt;6:[6.5, 1.5],&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160;  &lt;/ins&gt;6:[6.5, 1.5],&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;	 &lt;/del&gt;7:[5.5, 5.0],&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160;  &lt;/ins&gt;7:[5.5, 5.0],&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;	 &lt;/del&gt;8:[2.5, 5.0]}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160;  &lt;/ins&gt;8:[2.5, 5.0]}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ax=[ 0.0001, 0.0061, 0.0049]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ax=[ 0.0001, 0.0061, 0.0049]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ay=[-0.0005, 0.0042, 0.0038]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ay=[-0.0005, 0.0042, 0.0038]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fotis</name></author>	</entry>

	<entry>
		<id>http://www.nemesis-project.org/index.php?title=Example:Example_Quad4i_02&amp;diff=2088&amp;oldid=prev</id>
		<title>Fotis at 14:16, 9 January 2008</title>
		<link rel="alternate" type="text/html" href="http://www.nemesis-project.org/index.php?title=Example:Example_Quad4i_02&amp;diff=2088&amp;oldid=prev"/>
				<updated>2008-01-09T14:16:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:16, 9 January 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 95:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 95:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;db.exportToVtk(name)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;db.exportToVtk(name)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Examples]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fotis</name></author>	</entry>

	<entry>
		<id>http://www.nemesis-project.org/index.php?title=Example:Example_Quad4i_02&amp;diff=2086&amp;oldid=prev</id>
		<title>Fotis at 14:14, 9 January 2008</title>
		<link rel="alternate" type="text/html" href="http://www.nemesis-project.org/index.php?title=Example:Example_Quad4i_02&amp;diff=2086&amp;oldid=prev"/>
				<updated>2008-01-09T14:14:10Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
# /******************************************************************************&lt;br /&gt;
# *   nemesis. an experimental finite element code.                             *&lt;br /&gt;
# *   Copyright (C) 2004-2008 F.E.Karaoulanis [http://www.nemesis-project.org]  *&lt;br /&gt;
# *                                                                             *&lt;br /&gt;
# *   This program is free software; you can redistribute it and/or modify      *&lt;br /&gt;
# *   it under the terms of the GNU General Public License version 3, as        *&lt;br /&gt;
# *   published by the Free Software Foundation.                                *&lt;br /&gt;
# *                                                                             *&lt;br /&gt;
# *   This program is distributed in the hope that it will be useful,           *&lt;br /&gt;
# *   but WITHOUT ANY WARRANTY; without even the implied warranty of            *&lt;br /&gt;
# *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *&lt;br /&gt;
# *   GNU General Public License for more details.                              *&lt;br /&gt;
# *                                                                             *&lt;br /&gt;
# *   You should have received a copy of the GNU General Public License         *&lt;br /&gt;
# *   along with this program.  If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;.     *&lt;br /&gt;
# ******************************************************************************/&lt;br /&gt;
&lt;br /&gt;
# //*****************************************************************************&lt;br /&gt;
# // $LastChangedDate$&lt;br /&gt;
# // $LastChangedRevision$&lt;br /&gt;
# // $LastChangedBy$&lt;br /&gt;
# // $HeadURL$&lt;br /&gt;
# // Author(s): F.E. Karaoulanis (fkar@nemesis-project.org)&lt;br /&gt;
# //*****************************************************************************&lt;br /&gt;
&lt;br /&gt;
# Data&lt;br /&gt;
nds={1:[0.0, 0.0],&lt;br /&gt;
	 2:[9.0, 0.0],&lt;br /&gt;
	 3:[8.0, 8.0],&lt;br /&gt;
	 4:[0.0, 6.0],&lt;br /&gt;
	 5:[2.5, 2.0],&lt;br /&gt;
	 6:[6.5, 1.5],&lt;br /&gt;
	 7:[5.5, 5.0],&lt;br /&gt;
	 8:[2.5, 5.0]}&lt;br /&gt;
ax=[ 0.0001, 0.0061, 0.0049]&lt;br /&gt;
ay=[-0.0005, 0.0042, 0.0038]&lt;br /&gt;
&lt;br /&gt;
# domain&lt;br /&gt;
domain.planeStrain(1.0)&lt;br /&gt;
&lt;br /&gt;
# database&lt;br /&gt;
name=&amp;quot;vtk&amp;quot;&lt;br /&gt;
db.SQLite(name)&lt;br /&gt;
&lt;br /&gt;
# material&lt;br /&gt;
material.elastic( 1, 1000., 0.25)&lt;br /&gt;
&lt;br /&gt;
# nodes&lt;br /&gt;
for i in nds:&lt;br /&gt;
	node.add( i, nds[i][0], nds[i][1])&lt;br /&gt;
&lt;br /&gt;
# elements&lt;br /&gt;
element.quad4i( 1, 1, 2, 6, 5, 1)&lt;br /&gt;
element.quad4i( 2, 2, 3, 7, 6, 1)&lt;br /&gt;
element.quad4i( 3, 8, 7, 3, 4, 1)&lt;br /&gt;
element.quad4i( 4, 1, 5, 8, 4, 1)&lt;br /&gt;
element.quad4i( 5, 5, 6, 7, 8, 1)&lt;br /&gt;
&lt;br /&gt;
# constraints&lt;br /&gt;
for i in [1,2,3,4]:&lt;br /&gt;
	x=nds[i][0]&lt;br /&gt;
	y=nds[i][1]&lt;br /&gt;
	ux=ax[0]+ax[1]*x+ax[2]*y&lt;br /&gt;
	uy=ay[0]+ay[1]*x+ay[2]*y&lt;br /&gt;
	node.fix(i,1,ux)&lt;br /&gt;
	node.fix(i,2,uy)&lt;br /&gt;
&lt;br /&gt;
# loadcase (empty)&lt;br /&gt;
lc.define(1)&lt;br /&gt;
&lt;br /&gt;
# analysis&lt;br /&gt;
analysis.static()&lt;br /&gt;
imposer.lagrange()&lt;br /&gt;
analysis.run(1,1)&lt;br /&gt;
&lt;br /&gt;
# results&lt;br /&gt;
print '================================================='&lt;br /&gt;
print '|   |     Analytical      |     Numerical       |'&lt;br /&gt;
print '+---+----------+----------+----------+----------+'&lt;br /&gt;
print '|id |ux        |uy        |ux        |uy        |'&lt;br /&gt;
print '+---+----------+----------+----------+----------+'&lt;br /&gt;
for i in [5,6,7,8]:&lt;br /&gt;
	x=nds[i][0]&lt;br /&gt;
	y=nds[i][1]&lt;br /&gt;
	uxA=ax[0]+ax[1]*x+ax[2]*y&lt;br /&gt;
	uyA=ay[0]+ay[1]*x+ay[2]*y&lt;br /&gt;
	uxN=node.data(i)['disp'][0]&lt;br /&gt;
	uyN=node.data(i)['disp'][1]&lt;br /&gt;
	print '| %2i| % 8.6f| % 8.6f| % 8.6f| % 8.6f|'%(i,uxA,uyA,uxN,uyN)&lt;br /&gt;
print '================================================='&lt;br /&gt;
&lt;br /&gt;
# store to database&lt;br /&gt;
db.store(name)&lt;br /&gt;
db.exportToVtk(name)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fotis</name></author>	</entry>

	</feed>