<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>COMSOL Blog &#187; Materials</title>
	<atom:link href="http://www.comsol.no/blogs/category/general/materials/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.comsol.no/blogs</link>
	<description></description>
	<lastBuildDate>Thu, 22 Nov 2018 09:33:42 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>	<item>
		<title>How to Activate Material in Simulations of Manufacturing Processes</title>
		<link>https://www.comsol.no/blogs/how-to-activate-material-in-simulations-of-manufacturing-processes/</link>
		<comments>https://www.comsol.no/blogs/how-to-activate-material-in-simulations-of-manufacturing-processes/#comments</comments>
		<pubDate>Wed, 07 Nov 2018 09:26:55 +0000</pubDate>
		<dc:creator><![CDATA[Mats Danielsson]]></dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Mechanical]]></category>
		<category><![CDATA[Structural Mechanics & Thermal Stress]]></category>
		<category><![CDATA[3D Printing]]></category>
		<category><![CDATA[MEMS Module]]></category>
		<category><![CDATA[Structural Mechanics Module]]></category>
		<category><![CDATA[Technical Content]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs?p=286151</guid>
		<description><![CDATA[Material deposition is an essential ingredient in certain manufacturing processes, including welding and additive manufacturing. Say that you want to simulate such a manufacturing process. A challenge that you will face during the simulation is depositing material in a way that introduces it in a state of zero stress. Here, we look at the Activation functionality in the COMSOL Multiphysics® software and how it facilitates the simulation of material deposition. Why Activate or Deactivate Material? Imagine that you want to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Material deposition is an essential ingredient in certain manufacturing processes, including welding and additive manufacturing. Say that you want to simulate such a manufacturing process. A challenge that you will face during the simulation is depositing material in a way that introduces it in a state of zero stress. Here, we look at the <em>Activation</em> functionality in the COMSOL Multiphysics® software and how it facilitates the simulation of material deposition.</p>
<p><span id="more-286151"></span></p>
<h3>Why Activate or Deactivate Material?</h3>
<p>Imagine that you want to simulate a structural material that is in a molten state and then solidifies. Alternatively, the material is initially solid and then melts. This can be the case when you want to simulate manufacturing processes such as arc welding, selective laser melting, and selective laser sintering &mdash; the last two being common additive manufacturing methods.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/07/3D-printer-head.jpg" alt="A photograph of a 3D printer." width="800" height="445" class="alignnone size-full wp-image-229591" title="3D printer head" /><br />
<em>Material activation is useful when simulating additive manufacturing processes. Image of a 3D printer by Jonathan Juursema &mdash; Own work. Licensed under <a href="https://creativecommons.org/licenses/by-sa/3.0/deed.en" target="_blank">CC BY-SA 3.0</a>, via <a href="https://commons.wikimedia.org/wiki/File:Felix_3D_Printer_-_Printing_Head.JPG" target="_blank">Wikimedia Commons</a>.</em></p>
<p>You can use the <em>Activation</em> node to activate or deactivate material in a simple manner during a simulation. As a note, the <em>Activation</em> node is available in the add-on Structural Mechanics Module and MEMS Module as of version 5.4 of COMSOL Multiphysics®.</p>
<h3>Activation of Material: The Naive Approach</h3>
<p>One approach to emulate that material is structurally absent is to simply reduce its elastic stiffness to a point where it becomes negligible. This way, the rest of the structure is free to deform without &#8220;feeling&#8221; the structurally weaker material. This is a viable approach as long as we have no desire to actually activate material.</p>
<p>A problem arises if we try to activate the weak material by simply restoring its stiffness to the nominal level at some point during the simulation. When the stiffness is restored, any strains present in the activated material will suddenly produce stresses. In most situations, this is not a desired effect when activating material. Instead, material should be activated in a state of zero stress. This is more physical, as we usually want to emulate that material is deposited or solidified.</p>
<h3>Activate Material in a Stress-Free State</h3>
<p>The <em>Activation</em> node avoids the problem of the artificially produced stresses described above. This node reduces the stiffness of the inactive material as described before, but, importantly, it also removes any elastic strains that are present at the instant of activation. Simply put, material is activated in a state of zero stress.</p>
<p>The <em>Activation</em> node is located under the <em>Linear Elastic Material</em> node, as shown in the figure below, and it is available for the <em>Solid Mechanics</em> and <em>Membrane</em> interfaces.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/11/activation-feature-settings-window.png" title="" alt="A screenshot of the Activation feature settings used to activate material." width="739" height="480" class="alignnone size-full wp-image-286171" /><br />
<em>The</em> Activation <em>feature and its</em> Settings <em>window.</em></p>
<p>The <em>Activation</em> panel of the <em>Settings</em> window contains two settings, namely:</p>
<ul>
<li><em>Activation expression</em></li>
<li><em>Activation scale factor</em></li>
</ul>
<p>The <em>Activation expression</em> setting is a logical expression that you define. It is used to determine whether the material is active or not, and it is defined per integration point of the mesh elements. For example, an activation expression that reads <code>T&lt;T_s</code> says that the material is active if the expression is logically true (when the temperature, <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAARBAMAAAAidOHKAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADBQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////L2OGaQAAAA50Uk5TABGIZneqRFWZIt3uM8w0ZYRTAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAAAeAAAAHgAnfVaYAAAAFtJREFUCNdjYMAGhJRAwADIck1kf8SQ0QBkBTCwvGTgVGBg4DRgYF3AwJbAwMAswMDdwMA2AaznnAFMt98EGCsKbuIOGIPnMYwFNA4KgMZBAXcDlGF0b5ECqpsAJWYPDhtP+s0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMTEtMjFUMjM6MTQ6MzYrMDE6MDDKyUHiAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTExLTIxVDIzOjE0OjM2KzAxOjAwu5T5XgAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAAxMXgxMCszMDArNjM5GO98mwAAACd0RVh0cHM6TGV2ZWwAQWRvYmVGb250LTEuMDogQ01NSTEyIDAwMy4wMDIKMReWuwAAAEl0RVh0cHM6U3BvdENvbG9yLTAAL2Rldi9zaG0vemYyLWNhY2hlL2I5ZWNlMThjOTUwYWZiZmE2YjBmZGJmYTRmZjczMWQzLmR2aSAtb+cbL6UAAABFdEVYdHBzOlNwb3RDb2xvci0xAC9kZXYvc2htL3pmMi1jYWNoZS9iOWVjZTE4Yzk1MGFmYmZhNmIwZmRiZmE0ZmY3MzFkMy5wc5d5OxUAAAAASUVORK5CYII=" />, is less than the solidification temperature, <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAUBAMAAACUkLs9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADBQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////L2OGaQAAAA50Uk5TABGIZneqRFWZIt3uM8w0ZYRTAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAAAeAAAAHgAnfVaYAAAAHNJREFUGNNjYMANGJVAQBnCYQkTqFNg64BwWBkY/CYwTIJwJjMwRDEwpEE4hgwMOxgYMmFG8DxGMo/lJRKHdQESh7sBiXPOAIkDtAYBokBEcTmEA7SGgTPgKIjJrPtKCcjZgazx0BIE+xRDCYIzKV0BzZ8AgGYUawKAfnoAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMTEtMjFUMjM6MTQ6MzcrMDE6MDBsvkpWAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTExLTIxVDIzOjE0OjM3KzAxOjAwHePy6gAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAAxNHgxMisyOTgrNjM3+AoftwAAACd0RVh0cHM6TGV2ZWwAQWRvYmVGb250LTEuMDogQ01NSTEyIDAwMy4wMDIKMReWuwAAAEl0RVh0cHM6U3BvdENvbG9yLTAAL2Rldi9zaG0vemYyLWNhY2hlLzQyNTgwMWVhYjFjZjg5NmNiNTViMmY5NzVlMTEzMzBkLmR2aSAtb1Y27y4AAABFdEVYdHBzOlNwb3RDb2xvci0xAC9kZXYvc2htL3pmMi1jYWNoZS80MjU4MDFlYWIxY2Y4OTZjYjU1YjJmOTc1ZTExMzMwZC5wcywQOhoAAAAASUVORK5CYII=" />) and inactive otherwise.</p>
<p>The <em>Activation scale factor</em> setting defines the factor that multiplies the elastic stiffness to emulate that material is not present. It has a default value of 10<sup>-5</sup>, but you can change it if you wish. However, a value that is too low could make the stiffness matrix ill-conditioned.</p>
<p>Two built-in variables are provided to describe the active/inactive state, namely:</p>
<ul>
<li><code>isactive</code></li>
<li><code>wasactive</code></li>
</ul>
<p>The variable <code>isactive</code> indicates the current active/inactive state of the material, while the variable <code>wasactive</code> indicates whether the material has been active at any previous point during the simulation. In the case of a <em>Solid Mechanics</em> interface with the tag <code>solid</code>, the variable describing the current state of the material is called <code>solid.isactive</code>. The <code > wasactive</code> variable can be used to simplify the formulation of the activation expression in some situations, as we will see below.</p>
<blockquote><p>Note: If a material undergoes multiple activation/deactivation events, the elastic strains are removed at every instant of activation. This means that the material is always activated in a state of zero stress, regardless of its history, including past activations or deactivations. Inelastic strains, such as plastic strains, are not removed.</p></blockquote>
<p>Let us look at some examples of how to use the <em>Activation</em> node.</p>
<h4>Example 1: Pointwise Activation</h4>
<p>As a simple 2D example, suppose that you want to gradually activate a material in the <em>y</em> direction as time, <em>t</em>, progresses. The imagined &#8220;activation front&#8221; travels at a velocity, <em>vel</em>, and the region of active material is therefore given by <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGkAAAASCAMAAABvuQAKAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TACKIVWa7qsxE3REzmXfusxzGzwAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAFkSURBVDjL3ZTJloQgDEVJwlQM8v9/24loS5D2VPWiF83Cowy5yXsRY/5uAPKg/ZVf7KfHrXPvb/atgwyF+Hmm+HpcTjR85IZ9sqRfaOLLc80qkVf/qmtQzI+htmfBi0qkNlENlxGjK/AUKbdrGc86BvhLJQKNwbQC2YBDoakihyV/vFfJr4ZhdzkOnWciYiuqAr8lexchVacFRYMcyzYpJUCvwaOZUBfIzDbJYaQbB8MEz7HH5Spgi4damzrIKAWabOKozc+c4m4dH1lm6ADPtIxRbNJtZJ0CTTbJ/jks+LLwrZvCpOaQ4jUzqqWKgDa1U233qLCoyole0vXfmSmbdo/siJpt2sVYsNBNte+Xicx1UgKxqSoQP/yln9ikYmxoliMxa5Q9MCkKZE9B7pQGQBqkmo9FyNc6p97CD6jpjyIXibq0FFGK8XY4eRZz/TG2UDVvDxrtiic2Hw3zfFUZAPOPxxedOAi4yrQYlQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMVQyMzoxNDozNyswMTowMGy+SlYAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjFUMjM6MTQ6MzcrMDE6MDAd4/LqAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADYzeDExKzI3NSs2MziaSXT1AAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvY2E1OWU2YzQxOGI0OWNhNzQzZTc4ZDFiMThhNmRhNGQuZHZpIC1vnxAokQAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlL2NhNTllNmM0MThiNDljYTc0M2U3OGQxYjE4YTZkYTRkLnBzS9mfDgAAAABJRU5ErkJggg==" />. It is entered as the activation expression, as shown in the following figure.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/11/pointwise-material-activation-comsol.png" title="" alt="A screenshot of the expression used for pointwise material activation in COMSOL." width="405" height="179" class="alignnone size-full wp-image-286181" /><br />
<em>Activation expression for pointwise material activation.</em></p>
<p>To illustrate this, consider a solid quadrilateral element with four integration points (Gauss points), as in the figure below. With the activation expression above, each integration point is activated individually by evaluating the activation expression. This means, in practice, that a single mesh element can be partially active if it has more than one integration point.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/11/individual-mesh-integration-point-activation.png" title="" alt="A schematic showing individual integration points activated in a mesh element." width="703" height="410" class="alignnone size-full wp-image-286191" /><br />
<em>Activation of individual integration points in a mesh element.</em></p>
<h4>Example 2: Elementwise Activation</h4>
<p>Now, consider a case where you want to activate entire mesh elements, and not on an individual integration point basis. To do so, you need to phrase the activation expression so that it evaluates equally for every integration point in each mesh element. This can be done using the <em>centroid</em> operator. The activation expression that was used in the previous example is modified, as shown in the following figure. The coordinate <em>Y</em> is now evaluated at the mesh element centroid, which means that the activation expression will evaluate to the same value for all of the integration points in the mesh element.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/11/elementwise-material-activation-comsol.png" title="" alt="A screenshot of the expression used for elementwise material activation." width="407" height="178" class="alignnone size-full wp-image-286201" /><br />
<em>Activation expression for elementwise material activation.</em></p>
<p>Inside the mesh element in the figure below, the activation expression is fulfilled for the element centroid, and therefore all four integration points are active.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/11/integration-point-mesh-element-activation.png" title="" alt="A schematic showing all integration points activated in a mesh element." width="817" height="423" class="alignnone size-full wp-image-286211" /><br />
<em>Activation of all integration points in a mesh element by using the centroid operator.</em></p>
<h4>Example 3: Using the Previous State of Activation</h4>
<p>Suppose that you want to simulate a <a href="https://en.wikipedia.org/wiki/Cladding_(metalworking)" target="_blank">laser cladding process</a> where a filler material is melted and deposited over time. In this situation, the current position of the laser beam defines the location where material is currently deposited. The region of previously activated material is defined by the entire trajectory of the laser beam from the start of the process. (For details on how to model the movement of a laser beam, you can read this <a href="/blogs/3-approaches-to-modeling-moving-loads-and-constraints-in-comsol">blog post on modeling moving loads and constraints</a>.) The variable <code>wasactive</code> can be used to avoid having to describe this trajectory mathematically. You can express an activation expression for this situation schematically as:</p>
<p><em>(logical expression describing the current position of the laser beam) || solid.wasactive</em></p>
<p>which states that the material is active if the &#8220;logical expression describing the current position of the laser beam&#8221; is true <em>or</em> if the material has been active at any previous time (or parameter step) during the simulation. If the activation expression is used without the <code>wasactive</code> variable, the material would become inactive once the laser beam has passed, which is likely contrary to what is intended.</p>
<h3>Visualizing the Results</h3>
<p>Suppose that you have simulated a time-dependent process where material is deposited over time. It may be interesting to display results only for the active parts of a domain. You can do this by using the variable <code>isactive</code> as the <em>Logical expression for inclusion</em> in the <em>Filter</em> node, as shown in the figure below. Note that depending on the chosen fulfillment type, the <code>isactive</code> filtering may show slight differences compared to the underlying <code > isactive</code> variable defined at the integration points of the mesh elements.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/11/filter-node-comsol-multiphysics.png" title="" alt="A screenshot of the Filter node Settings window." width="600" height="260" class="alignnone size-full wp-image-286221" /><br />
<em>Using the</em> Filter <em>node to display only active parts of a domain.</em></p>
<h3>Concluding Thoughts on the Activation Node</h3>
<p>In this blog post, we have described different ways of using the <em>Activation</em> node to activate material during a simulation. The <em>Activation</em> node makes it easy to simulate the deposition of material in simulations of different types of manufacturing processes, such as welding and additive manufacturing. If you want to examine a model that uses the <em>Activation</em> node, click the button below to see the Thermal Initial Stresses in a Layered Plate example in the Application Gallery. Note that you need to have a COMSOL Access account and valid software license to download the related MPH-file.</p>
<div class="flex-center">
<a href="/model/thermal-initial-stresses-in-a-layered-plate-273" class="btn-solid btn-md btn-red">Try the Tutorial</a>
</div>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/how-to-activate-material-in-simulations-of-manufacturing-processes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Perform Multimaterial Optimization in COMSOL Multiphysics®</title>
		<link>https://www.comsol.no/blogs/how-to-perform-a-multimaterial-optimization-in-comsol-multiphysics/</link>
		<comments>https://www.comsol.no/blogs/how-to-perform-a-multimaterial-optimization-in-comsol-multiphysics/#comments</comments>
		<pubDate>Fri, 30 Mar 2018 18:33:52 +0000</pubDate>
		<dc:creator><![CDATA[Friedrich Maier]]></dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Optimization & Inverse Methods]]></category>
		<category><![CDATA[Optimization Module]]></category>
		<category><![CDATA[Technical Content]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs?p=255061</guid>
		<description><![CDATA[Sweeps are very useful for characterizing a system and learning more about how different input values impact the results. You can perform several different types of sweeps in the COMSOL Multiphysics® software, including function, material, and parametric sweeps. However, precise and innovative simulation results also call for mathematical optimization. In this blog post, learn how to combine sweep studies with the built-in optimization functionality. Achieving the Ideal Frequency of a Tuning Fork Tuning forks are made out many different materials, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Sweeps are very useful for characterizing a system and learning more about how different input values impact the results. You can perform several different types of sweeps in the COMSOL Multiphysics® software, including function, material, and parametric sweeps. However, precise and innovative simulation results also call for mathematical optimization. In this blog post, learn how to combine sweep studies with the built-in optimization functionality.</p>
<p><span id="more-255061"></span></p>
<h3>Achieving the Ideal Frequency of a Tuning Fork</h3>
<p>Tuning forks are made out many different materials, but most of them are calibrated to a standard pitch of 440 Hz for an A note. An article in <em>JOM</em> discusses how the frequency of a tuning fork changes with different materials and a fixed geometry (<a href="#ref1">Ref. 1</a>). This made me think: What if we change the geometry and material of a tuning fork to reach the desired frequency?</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/03/tuning-fork.jpg" title="" alt="A photo of a tuning fork resting on a table." width="1000" height="403" class="alignnone size-full wp-image-255101" /><br />
<em>A tuning fork.</em></p>
<h3>Performing an Optimization Study for Multiple Materials</h3>
<p>The Application Library contains several models featuring a tuning fork geometry, as well as a <a href="/blogs/tuning-fork-application/">tuning fork simulation app</a>. You can access the Application Library within the COMSOL® software GUI in the <em>File</em> menu and search the keyword &#8220;tuning fork&#8221;. For this blog post, we&#8217;ll start with the simple <a href="/model/tuning-fork-8499">Tuning Fork model (and accompanying example app)</a>. </p>
<p>This model features a parametric geometry, material properties of steel, the <em>Solid Mechanics</em> interface, and two studies. Both studies perform an eigenfrequency analysis to search for the eigenfrequency around 440 Hz. The first study uses a parametric sweep of the tuning fork&#8217;s arm length, set as a parameter <em>L</em>, to find the optimal design for 440 Hz. In contrast, the second study applies a mathematical optimization algorithm that uses <em>L</em> as the control variable and the deviation from the target frequency as the optimization objective for fast, precise, and efficient optimization.</p>
<p><a href="https://cdn.comsol.com/wordpress/2018/03/tuning-fork-model-comsol-gui.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2018/03/tuning-fork-model-comsol-gui.png" title="Tuning Fork model" alt="A screenshot of the COMSOL Multiphysics GUI with a tuning fork model in the Graphics window." width="1920" height="1160" class="alignnone size-full wp-image-255111" /></a><br />
<em>Tuning Fork model showing the original settings to search for a tune of 440 Hz via two different strategies.</em></p>
<p>Let&#8217;s return to the initial question: How does the tuning fork&#8217;s arm length depend on the material for a tune of 440 Hz? </p>
<p>First, we extend the model with a material switch. This option allows us to set and test various materials for the model. Further, this switch is needed to work with the material sweep in the <em>Study</em> node, as described later in this blog post. We can add available materials from the built-in Material Library, including:</p>
<ul>
<li>Aluminum</li>
<li>Titanium beta-21S</li>
<li>Copper</li>
<li>Steel AISI 4340</li>
</ul>
<p>The switch is assigned to the solid domains of the tuning fork.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/03/multimaterial-optimization-analysis-screenshot.png" title="" alt="A cropped screenshot showing the materials for a multimaterial analysis in COMSOL Multiphysics." width="583" height="355" class="alignnone size-full wp-image-255121" /><br />
<em>Setting the material switch for a multimaterial analysis.</em></p>
<p>Now that we transformed the original model into a multimaterial model, we can adjust the studies. Due to the combination with a material sweep, the studies can now solve the physical model for all chosen materials and it is possible to analyze all of the results together. For example, we can look at the eigenfrequency and confirm that the eigenfrequency changes with different materials and arm lengths.</p>
<p>Various sweeps can be combined easily within a study, such as the extension of Study 1 with a material sweep. In contrast, when we try to add a material sweep to the optimization study for Study 2, we get an error message. The good news is that there is another way of achieving this by using <em>Study References</em>, as explained below.</p>
<p>Setting the material sweep directly in the study is not supported, since it is only possible to use one <em>Sensitivity</em>, <em>Optimization</em>, <em>Parameter Estimation</em>, or <em>Parametric/Material/Function Sweep</em> study step in each study. These study nodes tend to control the same solver settings and are therefore incompatible with each other. To perform a parametric or nested optimization, we can call a study containing an <em>Optimization</em> node from inside another study via a <em>Study Reference</em> node.</p>
<p>Therefore, we add an additional empty study and fill it with a <em>Material Sweep</em> node and a study reference pointing to the optimization study. In the <em>Optimization</em> node, we can define the settings needed for the optimization. This is possible as long as all entries are globally available. For that, we leave Study 2 containing the optimization as is.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/03/comsol-software-screenshot-nested-studies.png" title="" alt="A cropped screenshot showing the settings for Study 2." width="613" height="300" class="alignnone size-full wp-image-255131" /><br />
<em>Use of an additional study to create nested studies.</em></p>
<h3>Optimizing a Tuning Fork for Various Materials in COMSOL Multiphysics</h3>
<p>With all the discussed adjustments, we can now run the multimaterial optimization study by computing Study 3. This study controls the material assignment and runs individual optimization procedures for each by starting Study 2 automatically. Hence, we can extract and postprocess the individual design changes for the different materials. This can be done, for example, by a global evaluation of the parametric data set. Evaluating the tuning fork arm length, set as the control variable <em>L</em>, gives us the needed design changes to tune each tuning fork design to 440 Hz.</p>
<p><img src="https://cdn.comsol.com/wordpress/2018/03/screenshot-global-evaluation-tuning-fork.png" title="" alt="A screenshot of the parametric data set for a tuning fork model." width="384" height="662" class="alignnone size-full wp-image-255141" /><br />
<em>Top: Settings of the global evaluation. Bottom: Results table for the different materials identified via the switch index.</em></p>
<h4>Testing Tuning Fork Design Parameters with an App</h4>
<p>You can build an app from a tuning fork model that includes a customized user interface and restricted inputs and outputs. Take the Tuning Fork app in the Application Library as an example. This app can be used to quickly compute the frequency of a tuning fork with the prong length as an input or the optimal prong length with the frequency as an input. </p>
<p><img src="https://cdn.comsol.com/wordpress/2018/03/tuning-fork-simulation-app.png" title="" alt="The Tuning Fork simulation app." width="1000" height="778" class="alignnone size-full wp-image-255151" /><br />
<em>The user interface of an example tuning fork app.</em></p>
<p>The example featured above can be used as inspiration for building apps of your own via the Application Builder tool in <a href="/comsol-multiphysics">COMSOL Multiphysics</a>.</p>
<h3>Concluding Thoughts on Multimaterial Optimization</h3>
<p>In this blog post, we used material sweeps in combination with an optimization study to find the best geometry for tuning forks made of different materials. Note that the approach discussed here is generic. You might want to combine other study steps that have the same hierarchy.</p>
<p>With this approach, you can combine all of the <em>Sensitivity</em>, <em>Optimization</em>, <em>Parameter Estimation</em>, or <em>Parametric/Material/Function Sweep</em> features into nested studies, thus improving your simulations, results, and products.</p>
<h3>Next Steps</h3>
<p>Try it yourself: Access the Tuning Fork model and app by clicking the button below, which will take you to the Application Gallery. Then, you can download the MPH-files if you have a COMSOL Access account and valid software license.</p>
<div class="flex-center">
<a href="/model/tuning-fork-8499" class="btn-solid btn-md btn-red">Get the Tutorial Model and Demo App</a>
</div>
<h4>Read More on the COMSOL Blog</h4>
<ul>
<li><a href="/blogs/multiparameter-optimization-with-a-least-squares-objective/">Multiparameter Optimization with a Least-Squares Objective</a></li>
<li><a href="/blogs/tuning-fork-application/">Tuning Fork Application</a></li>
</ul>
<h3 id="ref1"> Reference</h3>
<ol>
<li>T.D. Burleigh and P.A. Fuierer, &#8220;<a href="http://infohost.nmt.edu/~burleigh/TuningJOM2005.pdf" target="_blank">Tuning Forks for Vibrant Teaching</a>&#8220;, <em>JOM</em>, pp. 26&ndash;27, Nov. 2005.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/how-to-perform-a-multimaterial-optimization-in-comsol-multiphysics/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Generate Randomized Inhomogeneous Material Data</title>
		<link>https://www.comsol.no/blogs/how-to-generate-randomized-inhomogeneous-material-data/</link>
		<comments>https://www.comsol.no/blogs/how-to-generate-randomized-inhomogeneous-material-data/#comments</comments>
		<pubDate>Tue, 20 Jun 2017 12:24:31 +0000</pubDate>
		<dc:creator><![CDATA[Bjorn Sjodin]]></dc:creator>
				<category><![CDATA[Equation-Based Modeling]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Results & Visualization]]></category>
		<category><![CDATA[Technical Content]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs?p=223311</guid>
		<description><![CDATA[You can generate and visualize randomized material data with specified statistical properties determined by a spectral density distribution by using the tools available under the Results node in the COMSOL Multiphysics® software. In this blog post, we show examples that are quite general and have potential uses in many application areas, including heat transfer, structural mechanics, subsurface flow, and more. Synthesizing Randomized Inhomogeneous Material Data We have already discussed how to generate random-looking geometric surfaces by using sum and if [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>You can generate and visualize randomized material data with specified statistical properties determined by a spectral density distribution by using the tools available under the <em>Results</em> node in the COMSOL Multiphysics® software. In this blog post, we show examples that are quite general and have potential uses in many application areas, including heat transfer, structural mechanics, subsurface flow, and more.</p>
<p><span id="more-223311"></span></p>
<h3>Synthesizing Randomized Inhomogeneous Material Data</h3>
<p>We have already discussed <a href="/blogs/how-to-generate-random-surfaces-in-comsol-multiphysics/">how to generate random-looking geometric surfaces</a> by using <em>sum</em> and <em>if</em> operators in combination with uniform and Gaussian random distribution functions. The idea is that by summing up a set of spatially varying waves with careful choices of amplitudes and phase angles, we can mimic the type of randomness frequently found in natural materials and many natural phenomena in general.</p>
<p>To generate synthetic material data in 2D, we can use the same double-sum expression that we used to create randomized CAD surface data in the previous blog post:</p>
<div class="latex">f(x,y)=\sum_{k=-K}^{K} \sum_{l=-L}^{L} a(k,l) cos(2 \pi(kx+ly)+\phi(k,l))</div>
<p>Note that this sum could also be used to generate random data for use in boundary conditions on surfaces in a 3D model.</p>
<p>For the 3D volume case, we will need triple sums:</p>
<div class="latex">f(x,y,z)=\sum_{k=-K}^{K} \sum_{l=-L}^{L} \sum_{m=-M}^{M} a(k,l,m) cos(2 \pi(kx+ly+mz)+\phi(k,l,m))</div>
<p>The frequency-dependent amplitudes will take their values from a random distribution according to</p>
<div class="latex">a(k,l) = g(k,l) h(k,l)=\frac{g(k,l)}{\vert k^2+l^2\vert^{\beta}}=\frac{g(k,l)}{(k^2+l^2)^{\frac{\beta}{2}}}</div>
<p>and</p>
<div class="latex">a(k,l,m) = g(k,l,m) h(k,l,m)=\frac{g(k,l,m)}{\vert k^2+l^2+m^2 \vert^{\beta}}=\frac{g(k,l,m)}{(k^2+l^2+m^2)^{\frac{\beta}{2}}}</div>
<p>for the 2D and 3D cases, respectively.</p>
<p>The functions <em>g</em>(<em>k</em>,<em>l</em>) and <em>g</em>(<em>k</em>,<em>l</em>,<em>m</em>) have a random Gaussian, or normal, distribution and <em>h</em>(<em>k</em>,<em>l</em>) and <em>h</em>(<em>k</em>,<em>l</em>,<em>m</em>) are frequency-dependent amplitude functions with values that taper off for higher frequencies in accordance with the spectral exponent <em>β</em>. The higher the value of the spectral exponent, the smoother the generated data will be. For a variety of reasons, many natural processes have this property, which is characterized by slower variations that are more dominant than fast.</p>
<p>The phase angles <em>φ</em> are sampled from a function <em>u</em>. The function has a uniform random distribution that is between <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAmCAMAAAB5ytLYAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TAESIZruqdyIRVd3M7jOZoSV7NgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAACkSURBVDjL7ZQ5EsMgDEXFB7MYG+5/20jYHpogZdKkySto9AYtLERf43CzVnzABgQgLpXEId5hLYhD4mSQTvFck+FsiaLhpJ2zGY7EUXXncFxSN3LJctKfQXYTGUqfhMdJmJRfF7zsI1lKBFrVDz5KGIe6VZBo7uptvWY3J/iO4obTzNZKd6ZTrUdI1OxM/gNFEumjPv0QVSVY3xi/5esW2r0/vAA3SgOaujB7WwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMlQxMTo1MToyMCswMTowMAa26OIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjJUMTE6NTE6MjArMDE6MDB361BeAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADIxeDIzKzI5NCs2MzENvOMdAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTVNZMTAgMDAzLjAwMgp3GwEQAAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvMDQxNmYwZmYxMjEzOWMwZGQ5MjA3OGUwNTVkNzJkYzEuZHZpIC1vT8bqzQAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlLzA0MTZmMGZmMTIxMzljMGRkOTIwNzhlMDU1ZDcyZGMxLnBz9u7uLgAAAABJRU5ErkJggg==" /> and <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAmCAMAAAAVzIDdAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TAESIZruqdyIRVd3M7jOZoSV7NgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAACPSURBVCjPzZLLFsMgCERxJD5iov//t4U8GrBddtFZePDqIKJE3xRw6QaRsQAMpAtkCWQ1PZ5MSgpcohollyNLpuRIXsXniM7QLNmCpBrOpcNOf6LxiH+fvYTsQQJ6s5dPOsFmtrHGZZi+npXZ+mo4SJ+OqyNMpGECffbED6AWW/YeD2wA+y8mr3x2cD79rRfQwgNUryBYRwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMlQwMDowMzozOCswMTowMMzI4pcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjJUMDA6MDM6MzgrMDE6MDC9lVorAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADEweDIzKzMwMSs2MzFiSxawAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvNGRhYzI1YmNhMDBmMGJlN2YwMjdmY2E5YTAwMmQwYWQuZHZpIC1vcnffTAAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlLzRkYWMyNWJjYTAwZjBiZTdmMDI3ZmNhOWEwMDJkMGFkLnBzOKLVFgAAAABJRU5ErkJggg==" />:<br />
<em>φ</em>(<em>k</em>,<em>l</em>) = <em>u</em>(<em>k</em>,<em>l</em>) and <em>φ</em>(<em>k</em>,<em>l</em>,<em>m</em>) = <em>u</em>(<em>k</em>,<em>l</em>,<em>m</em>)</p>
<p>The sums run over a set of discrete frequencies. More nonzero terms in a sum imply a larger number of higher-frequency contributions, resulting in data that contains finer details. The maximum frequencies in each direction are determined by the integers <em>K</em>, <em>L</em>, and <em>M</em>, respectively. These types of sums are closely linked to discrete inverse cosine transforms. They essentially correspond to an inverse cosine transform of the amplitude coefficients <em>g</em>(<em>k</em>,<em>l</em>) and <em>g</em>(<em>k</em>,<em>l</em>,<em>m</em>), with some additional manipulations of the phase angles. For details, see the previous blog post on how to generate random surfaces in COMSOL Multiphysics.</p>
<h3>Expressions for Double and Triple Summation</h3>
<p>In COMSOL Multiphysics, the following double-sum expression can be entered in various edit fields, such as 2D material properties or 3D boundary conditions:</p>
<p>0.01*sum(sum(if((k!=0)||(l!=0),((k^2+l^2)^(-b/2))*g1(k,l)*cos(2*pi*(k*s1+l*s2)+u1(k,l)),0),k,-N,N),l,-N,N)</p>
<p>We can use a similar expression for the triple sum, which can be used for 3D material data, loads, sources, and sinks:</p>
<p>0.01*sum(sum(sum(if((k!=0)||(l!=0)||(m!=0),((k^2+l^2+m^2)^(-b/2))*g1(k,l,m)*cos(2*pi*(k*x+l*y+m*z)+u1(k,l,m)),0),k,-N,N),l,-N,N),m,-N,N)</p>
<p>where we have set <em>K</em> = <em>L</em> = <em>M</em> = <em>N</em>.</p>
<p>For more details about the underlying theory and syntax used here, see the blog post mentioned above.</p>
<p>Working with models that contain triple sums is computationally quite expensive. It is more efficient to first generate the data and export it to file and then import it again as an interpolation function, perhaps in a separate model. This interpolation function can then be used in a variety of ways, as we will explain later. Alternatively, you can use external software to generate the data by means of inverse FFT.</p>
<p>Let&#8217;s now take a look at how to generate 3D material data.</p>
<h3>Generating a Randomized Interpolation Table in COMSOL Multiphysics®</h3>
<p>Creating a 3D volume matrix of random data is surprisingly easy. It amounts to creating a couple of random functions, some parameters, a <em>Grid</em> data set, and an <em>Export</em> node.</p>
<p>Start by creating a random function for the amplitudes with 3 input arguments based on a normal, or Gaussian, distribution. This corresponds to the function <em>g</em>(<em>k</em>,<em>l</em>,<em>m</em>) in the mathematical description above. In this case, we arbitrarily use the default settings for a random function with the mean value set to 0 and the standard deviation set to 1.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Gaussian-Random-function-settings.png" title="" alt="A screenshot of the settings for the Gaussian Random function in COMSOL Multiphysics." width="640" height="367" class="alignnone size-full wp-image-223341" /></p>
<p>Next, we create a random function for the phase angles with 3 input arguments based on a uniform distribution between <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAmCAMAAAB5ytLYAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TAESIZruqdyIRVd3M7jOZoSV7NgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAACkSURBVDjL7ZQ5EsMgDEXFB7MYG+5/20jYHpogZdKkySto9AYtLERf43CzVnzABgQgLpXEId5hLYhD4mSQTvFck+FsiaLhpJ2zGY7EUXXncFxSN3LJctKfQXYTGUqfhMdJmJRfF7zsI1lKBFrVDz5KGIe6VZBo7uptvWY3J/iO4obTzNZKd6ZTrUdI1OxM/gNFEumjPv0QVSVY3xi/5esW2r0/vAA3SgOaujB7WwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMlQxMTo1MToyMCswMTowMAa26OIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjJUMTE6NTE6MjArMDE6MDB361BeAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADIxeDIzKzI5NCs2MzENvOMdAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTVNZMTAgMDAzLjAwMgp3GwEQAAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvMDQxNmYwZmYxMjEzOWMwZGQ5MjA3OGUwNTVkNzJkYzEuZHZpIC1vT8bqzQAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlLzA0MTZmMGZmMTIxMzljMGRkOTIwNzhlMDU1ZDcyZGMxLnBz9u7uLgAAAABJRU5ErkJggg==" /> and <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAmCAMAAAAVzIDdAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TAESIZruqdyIRVd3M7jOZoSV7NgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAACPSURBVCjPzZLLFsMgCERxJD5iov//t4U8GrBddtFZePDqIKJE3xRw6QaRsQAMpAtkCWQ1PZ5MSgpcohollyNLpuRIXsXniM7QLNmCpBrOpcNOf6LxiH+fvYTsQQJ6s5dPOsFmtrHGZZi+npXZ+mo4SJ+OqyNMpGECffbED6AWW/YeD2wA+y8mr3x2cD79rRfQwgNUryBYRwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMlQwMDowMzozOCswMTowMMzI4pcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjJUMDA6MDM6MzgrMDE6MDC9lVorAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADEweDIzKzMwMSs2MzFiSxawAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvNGRhYzI1YmNhMDBmMGJlN2YwMjdmY2E5YTAwMmQwYWQuZHZpIC1vcnffTAAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlLzRkYWMyNWJjYTAwZjBiZTdmMDI3ZmNhOWEwMDJkMGFkLnBzOKLVFgAAAABJRU5ErkJggg==" /> corresponding to the function <em>u</em>(<em>k</em>,<em>l</em>,<em>m</em>) above.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Uniform-Random-function.png" title="" alt="A screenshot of the settings for the Uniform Random function in COMSOL Multiphysics." width="640" height="358" class="alignnone size-full wp-image-223351" /></p>
<p>Now, create a data set of the type <em>Grid 3D</em> that references the random functions as a source. We need this data set to give an evaluation context to the triple-sum expression that we will define later in the <em>Export</em> node.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/settings-for-Grid-3D.png" title="" alt="A screenshot of the settings for Grid 3D in COMSOL Multiphysics." width="641" height="665" class="alignnone size-full wp-image-223361" /></p>
<p>We will use two results parameters, N and b, for the spatial frequency resolution and spectral exponent, respectively.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Parameters-settings-in-COMSOL-Multiphysics.png" title="" alt="A screenshot of the Parameters settings in COMSOL Multiphysics." width="689" height="303" class="alignnone size-full wp-image-223371" /></p>
<p>To make it easier to work with the large data sets that are generated, you can turn off the <em>Automatic update of plots</em> option. This setting is available in the Settings window of the <em>Results</em> node. Turning it off avoids recomputing the expressions each time you click on a plot group under <em>Results</em>.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Automatic-update-of-plots-option.png" title="" alt="A cropped screenshot of the COMSOL Multiphysics GUI showing the Automatic update of plots option." width="172" height="134" class="alignnone size-full wp-image-223381" /></p>
<p>To visualize the data before exporting to file, add a <em>Slice</em> plot and type (or paste) the expression:</p>
<p>0.01*sum(sum(sum(if((k!=0)||(l!=0)||(m!=0),((k^2+l^2+m^2)^(-b/2))*g1(k,l,m)*cos(2*pi*(k*x+l*y+m*z)+u1(k,l,m)),0),k,-N,N),l,-N,N),m,-N,N)</p>
<p><a href="https://cdn.comsol.com/wordpress/2017/06/Slice-plot-in-the-Graphics-window.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/Slice-plot-in-the-Graphics-window.png" title="Slice plot" alt="A screenshot of the COMSOL Multiphysics GUI featuring a Slice plot in the Graphics window." width="1000" height="604" class="alignnone size-full wp-image-223391" /></a></p>
<p>To export the data, add a <em>Data</em> node under <em>Export</em> and type in the same expression as for the <em>Slice</em> plot above. In the Settings window of the <em>Data</em> node, make sure to set the data set to <em>Grid 3D</em> and to specify a file name that the data will be written to. Here, we can let the points be evaluated in a way that is independent of the <em>Grid 3D</em> data set.</p>
<p>For the setting <em>Points to evaluate in</em>, select <em>Regular grid</em>. For <em>Data format</em>, select <em>Grid</em>. You can freely choose the number of <em>x</em>, <em>y</em>, and <em>z</em> points to evaluate in. In the figure below, these points have each been set to <em>50</em>. Note that data generation corresponding to numbers higher than <em>50</em> may take a very long time to generate. For a 50x50x50 grid, we already get 125,000 data points.</p>
<p><a href="https://cdn.comsol.com/wordpress/2017/06/Data-settings.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/Data-settings.png" title="Data settings" alt="A screenshot showing the Data settings in COMSOL Multiphysics." width="1000" height="839" class="alignnone size-full wp-image-223401" /></a></p>
<p>The text file that is generated and exported can now be imported to a new file for the purpose of setting up a physics analysis where we use the generated data in material properties. This can be done for any type of physics, including electromagnetics, structural mechanics, acoustics, CFD, heat transfer, and chemical analysis. By using the COMSOL® API in model methods or applications, for example, such export and import operations can be automated and set in the context of a for-loop in order to generate statistics over a larger sample set. In this example, we only generate one set of data.</p>
<h3>Using the Generated Data in a Heat Transfer Analysis</h3>
<p>To illustrate how this type of data can be used, let&#8217;s create a test model of the simplest possible kind, based on a heat transfer analysis.</p>
<p>Start by creating a new 3D model using a <em>Heat Transfer in Solids</em> interface.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/geometry-settings-for-3D-model.png" title="" alt="A screenshot showing the geometry settings for a 3D example model in COMSOL Multiphysics." width="607" height="568" class="alignnone size-full wp-image-223411" /></p>
<p>Now, import the data from file as an <em>Interpolation</em> function. This function will be available under the <em>Global Definitions</em> node.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Interpolation-function-settings.png" title="" alt="A screenshot showing the Interpolation function settings in COMSOL Multiphysics." width="672" height="664" class="alignnone size-full wp-image-223421" /></p>
<p>The <em>Interpolation</em> function is given the name <em>cloud</em> and can later be accessed using expressions like <em>cloud(x,y,z)</em>.</p>
<p>To make unit handling easy, when using this interpolation function, we will set the input argument units to <em>m</em> and the function unit to <em>1</em>. The <em>Function unit</em> corresponds to the unit of <em>f(x,y,z)=cloud(x,y,z)</em> and setting it to <em>1</em> makes it dimensionless.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/interpolation-extrapolation-and-unit-settings.png" title="" alt="A screenshot showing interpolation, extrapolation, and unit settings in COMSOL Multiphysics." width="428" height="181" class="alignnone size-full wp-image-223431" /></p>
<p>To keep things simple, let&#8217;s use a <em>Block</em> geometry object that matches the imported data exactly, with the corner at the origin and sides at 1. This corresponds to the size and position of the <em>Grid 3D</em> data set used earlier for generating the data.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Block-geometry-object-settings.png" title="" alt="A COMSOL screenshot showing the Block geometry object settings." width="672" height="451" class="alignnone size-full wp-image-223441" /></p>
<p>For a &#8220;real&#8221; case, you can instead import or create a CAD geometry, which can be used to truncate the interpolation function in a suitable way. This truncation of data is automatic in COMSOL Multiphysics. The figure below shows such an interpolation of randomized data over a CAD model of a wrench. When evaluating over an arbitrary geometry, it can be useful to scale the coordinate values in the triple-sum. In the wrench example, instead of k*x+l*y+m*z, as in the expressions above, the scaled expression k*(x/0.05)+l*(y/0.05)+m*(z/0.05) is used.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/wrench-model-using-a-scaled-expression.png" title="" alt="A COMSOL model of a wrench using a scaled expression." width="1000" height="794" class="alignnone size-full wp-image-223451" /></p>
<p>This type of irregular material data may have uses in statistical modeling of materials such as those found in additive manufacturing, where perfect material homogeneity of a 3D-printed component may not always be possible to achieve. The data can be used for any type of material property, such as conductivity, permeability, and elasticity properties, to name a few.</p>
<p>Getting back to our unit cube example, we now add a <em>Blank Material</em> node. We will, somewhat arbitrarily, set the <em>Density</em> to 2000 kg/m<sup>3</sup> and the <em>Heat capacity</em> to 1 J/kg/K. Since we are performing a stationary analysis, the <em>Heat capacity</em> is irrelevant. The <em>Thermal conductivity</em> is set to the expression <em>1+2[W/m/K]*cloud(x,y,z)</em>. We can see from the earlier <em>Slice</em> plot visualization that the values for the interpolation table are roughly between <em>-0.2</em> and <em>0.2</em>. This means that this expression will generate an interesting spatial distribution of thermal conductivity values between about 0.6 and 1.4.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/thermal-conductivity-settings.png" title="" alt="A screenshot of the COMSOL software with the thermal conductivity settings highlighted." width="782" height="499" class="alignnone size-full wp-image-223461" /></p>
<p>The coefficient 2[W/m/K] is used to assign a consistent unit to the expression. The constant 1 will be automatically converted to the correct unit: [W/m/K].</p>
<p>Let&#8217;s define some simple boundary conditions. Set the temperature at the top surface to 393.15[K] and the bottom surface to 293.15[K], corresponding to a 100-K temperature difference.</p>
<p><a href="https://cdn.comsol.com/wordpress/2017/06/demo-of-defining-simple-boundary-conditions.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/demo-of-defining-simple-boundary-conditions.png" title="Simple boundary conditions" alt="A demonstration of defining simple boundary conditions in a COMSOL model." width="1000" height="604" class="alignnone size-full wp-image-223471" /></a></p>
<p>Now, let&#8217;s generate a default mesh.</p>
<p><a href="https://cdn.comsol.com/wordpress/2017/06/generating-a-default-mesh.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/generating-a-default-mesh.png" title="Default mesh" alt="An illustration of generating a default mesh in a COMSOL model." width="1000" height="604" class="alignnone size-full wp-image-223481" /></a></p>
<p>COMSOL Multiphysics will automatically interpolate values such as those from the material properties to this unstructured mesh from the imported interpolation function. Alternatively, we could generate a swept mesh with hexahedral elements of the same size as the original data, 50x50x50. Such a representation would be more &#8220;true&#8221; to the original data.</p>
<p>You can experiment with different element orders, such as linear and quadratic types. Unless you use a very fine mesh that &#8220;oversamples&#8221; the data, the results will depend somewhat on the element order.</p>
<p>Running the <em>Study</em> will produce a couple of temperature plots, the second of which is an <em>Isosurface</em> plot.</p>
<p><a href="https://cdn.comsol.com/wordpress/2017/06/study-generating-temperature-plots.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/study-generating-temperature-plots.png" title="Running a Study" alt="An example of running a Study in COMSOL Multiphysics to generate temperature plots." width="1000" height="604" class="alignnone size-full wp-image-223491" /></a></p>
<p>Notice how the <em>Isosurface</em> plot looks a little bit jagged, which is due to the underlying irregularity of the material data. We can create another <em>Slice</em> plot to yet again visualize the data. This time, we do so under the guise of thermal conductivity by using the variable <em>ht.kmean</em>, which equals the expression 1+2[W/m/K]*cloud(x,y,z) defined earlier.</p>
<p><a href="https://cdn.comsol.com/wordpress/2017/06/Slice-plot-example-to-visualize-data.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/Slice-plot-example-to-visualize-data.png" title="Slice plot to visualize data" alt="An example of creating a Slice plot to visualize COMSOL model data." width="1000" height="604" class="alignnone size-full wp-image-223501" /></a></p>
<p>Here, the data is sampled at a lower sampling density than the original interpolation function, since we used the default mesh with the <em>Element size</em> set to the default <em>Normal</em> setting. Successively refining this unstructured mesh will ultimately sample the data at more or less the same level of detail as the original synthesized data.</p>
<p>As mentioned earlier, the approach used here for heat transfer is applicable to virtually any other type of simulation. For example, in a porous media flow simulation, the randomized quantity would be permeability rather than thermal conductivity. In the case of porous media flow, a more advanced random distribution may be needed, but let&#8217;s save that discussion for a future blog post.</p>
<h3>Binary Data and Percolation Effects</h3>
<p>We can also use the synthesized data in a different way: by using Boolean expressions to convert it to binary data. This method can be used for simulating two or more materials where the material interface is randomized and the material properties change abruptly from one point to another. COMSOL Multiphysics will automatically handle the sharp interpolations needed for this case.</p>
<p>The following picture shows a visualization of the Boolean expression <em>cloud(x,y,z)&gt;-0.03</em>, which evaluates to 1 at points where the inequality is true and 0 at the other points.</p>
<p><a href="https://cdn.comsol.com/wordpress/2017/06/Boolean-expression-visualization.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/Boolean-expression-visualization.png" title="Boolean expression" alt="A visualization of a certain Boolean expression in COMSOL Multiphysics." width="1000" height="604" class="alignnone size-full wp-image-223511" /></a></p>
<p>To get a nicer plot, you can set the resolution of the <em>Slice</em> plot to <em>Extra fine</em>. This setting is available in the <em>Quality</em> section of the Settings window for the <em>Slice</em> plot.</p>
<p>We would now like to use this type of binary information in a simulation. It can be interesting, for example, to use it in a heat transfer simulation to see the so-called <a href="https://en.wikipedia.org/wiki/Percolation_theory" target="_blank"><em>percolation</em> effects</a>. For certain threshold values, you get a large connected component in the material so that the entire slab of material starts conducting much more efficiently.</p>
<p>To try this, change the expression for the thermal conductivity to 1-0.9[W/m/K]*(cloud(x,y,z)&gt;thold), where <em>thold</em> is a global parameter. Start by defining <em>thold</em> in <em>Parameters</em> under <em>Global Definitions</em>.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Parameters-node-in-COMSOL-Multiphysics.png" title="" alt="A cropped screenshot of the Model Builder with the Parameters node highlighted." width="536" height="176" class="alignnone size-full wp-image-223521" /></p>
<p>Then, change the material data accordingly.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Material-Contents-section-in-COMSOL-GUI.png" title="" alt="A cropped screenshot of the Material Contents section in the COMSOL GUI." width="593" height="125" class="alignnone size-full wp-image-223531" /></p>
<p>For each point in space, the <em>Thermal conductivity</em> will, in a binary fashion, evaluate to 1 or 0.1, depending on the value of the inequality.</p>
<p>Now, let&#8217;s see how different values of this Boolean threshold will affect the simulation. For this purpose, run a parametric sweep over the parameter <em>thold</em> from -0.2 to 0.2.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Parametric-Sweep-settings.png" title="" alt="A screenshot showing the Parametric Sweep settings in COMSOL Multiphysics." width="581" height="468" class="alignnone size-full wp-image-223541" /></p>
<p>Add a <em>Surface Integration</em> node under <em>Derived Values</em> to integrate the total heat flux that goes through one of the surfaces. This will be given by the surface integral of -ht.ntflux or +ht.ntflux, depending on if you are integrating over the top or bottom surface. In the figure below, we used the top surface.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Surface-Integration-settings.png" title="" alt="A screenshot showing the Surface Integration settings in COMSOL Multiphysics." width="735" height="520" class="alignnone size-full wp-image-223551" /></p>
<p>The resulting <em>Table</em> plot shows the amount of heat power transferred (in watts). We can see that for threshold values around 0, the conductivity rises quickly from a low value to a high value. This is due to the sudden appearance of one or more large connected components where the expression 1-0.9[W/m/K]*(cloud(x,y,z)&gt;thold) evaluates to 1.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/transferred-heat-power-plot.png" title="" alt="A Table plot of transferred heat power for an example model in COMSOL Multiphysics." width="640" height="480" class="alignnone size-full wp-image-223561" /></p>
<p>The figures below show a <em>Volume</em> plot with a <em>Filter</em> attribute for three threshold values around 0. The filter shows the parts of the domain for which <em>cloud(x,y,z)&lt;</em><em>thold</em> corresponds to the locations of higher conductivity.</p>
<div class="row">
<div class="col-sm-4">
<a href="https://cdn.comsol.com/wordpress/2017/06/thold-value-9-volume-plot.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/thold-value-9-volume-plot.png" title="thold value 9" alt="A Volume plot for thold value 9." width="950" height="743" class="alignnone size-full wp-image-223571" /></a>
</div>
<div class="col-sm-4">
<a href="https://cdn.comsol.com/wordpress/2017/06/thold-value-10-volume-plot.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/thold-value-10-volume-plot.png" title="thold value 10" alt="A Volume plot for thold value 10." width="950" height="743" class="alignnone size-full wp-image-223581" /></a>
</div>
<div class="col-sm-4">
<a href="https://cdn.comsol.com/wordpress/2017/06/thold-value-11-volume-plot.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/thold-value-11-volume-plot.png" title="thold value 11" alt="A Volume plot for thold value 11." width="950" height="743" class="alignnone size-full wp-image-223591" /> </a>
</div>
</div>
<p>We can see from these figures how the highly conductive parts start connecting for the higher threshold values.</p>
<p>The corresponding <em>Filter</em> settings are shown in the figure below.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/Filter-settings.png" title="" alt="A screenshot showing the Filter settings in COMSOL Multiphysics." width="641" height="315" class="alignnone size-full wp-image-223601" /></p>
<p>A similar type of percolation effect, seen here for binary data, is also happening for the continuous data case shown earlier. However, when using binary data, the effects are easier to see.</p>
<h3>Point Cloud Visualization</h3>
<p>Finally, let&#8217;s look at an alternative way of visualizing this type of random data. We will visualize the data set using a large number of randomized points (or rather, small spheres) and let the radius and color of the points vary according to the interpolation function <em>cloud(x,y,z)</em>. In addition, we will only allow the points to be visualized for positive values of cloud(x,y,z). This technique will allow us to &#8220;see inside the data&#8221; in a way that is difficult to achieve using other methods. Note that this visualization technique works for any type of data, including real measured data.</p>
<p>Start by generating three random variables with uniform distribution, with the <em>Range</em> set to 1 and the <em>Mean</em> value set to 0.5.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/settings-for-one-random-variable.png" title="" alt="A screenshot showing the settings for one random variable in COMSOL Multiphysics." width="735" height="350" class="alignnone size-full wp-image-223641" /></p>
<p>To generate this type of plot, we use a <em>Scatter Volume</em> plot type. This is available by right-clicking a <em>3D Plot Group</em> and selecting <em>More Plots</em> &gt; <em>Scatter Volume</em>.</p>
<p>In the Settings window of the <em>Scatter Volume</em> plot, set the expression for the <em>X</em>-, <em>Y</em>-, and <em>Z</em>-components: rn1(x), rn2(x), and rn3(x), respectively. Here, we are using the <em>x</em>-coordinate in an unusual way, in that we are using it merely as a long vector of arbitrary values.</p>
<p>Next, in the <em>Evaluation Points</em> section, set the <em>Number of points</em> for the <em>X grid points</em> to 100,000; 1,000,000; or more, depending on how many points your computer can handle. Set each of the <em>Y</em> grid point and <em>Z</em> grid point values to 1. This is a trick for getting a long vector of values that we can feed into the random functions in order to generate a lot of random points within the unit cube.</p>
<p><a href="https://cdn.comsol.com/wordpress/2017/06/random-material-data-in-grayscale-plot.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2017/06/random-material-data-in-grayscale-plot.png" title="Random material data in grayscale" alt="A COMSOL plot of random material data in grayscale." width="1000" height="604" class="alignnone size-full wp-image-223651" /></a></p>
<p>To make the plot appear as in the above figure, go to the <em>Radius</em> section and set <em>Expression</em> to <em>cloud(rn1(x),rn2(x),rn3(x))</em> and the <em>Radius scale factor</em> to <em>0.3</em>. In addition, in the <em>Color</em> section, set the <em>Expression</em> to <em>cloud(rn1(x),rn2(x),rn3(x))</em> and the <em>Color table</em> to <em>GrayScale</em>.</p>
<p>One additional noteworthy fact about this plot: negative values will be ignored. This helps our visualization, since roughly half of the generated data is negative and we can more easily see through the data and get an intuitive feel for the variations. This method will only work for a rectangular block. To instead generate this type of plot over an arbitrary CAD geometry, you can use the Particle Tracing Module, which allows you to generate random points inside any type of CAD model.</p>
<p><img src="https://cdn.comsol.com/wordpress/2017/06/point-cloud.png" title="" alt="A point cloud." width="450" height="451" class="alignnone size-full wp-image-223761" /></p>
<p>By the way, a similar-looking plot can be achieved in a 2D model by simply creating a <em>2D Surface</em> plot using a double-sum expression, as shown in the figure above.</p>
<div class="flex-center">
<a href="/model/how-to-generate-randomized-inhomogeneous-material-data-50321" class="btn-solid btn-md btn-red">Get the MPH-Files</a>
</div>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/how-to-generate-randomized-inhomogeneous-material-data/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Efficiently Assign Materials in Your COMSOL Multiphysics® Model</title>
		<link>https://www.comsol.no/blogs/efficiently-assign-materials-in-your-comsol-multiphysics-model/</link>
		<comments>https://www.comsol.no/blogs/efficiently-assign-materials-in-your-comsol-multiphysics-model/#comments</comments>
		<pubDate>Tue, 20 Sep 2016 21:01:10 +0000</pubDate>
		<dc:creator><![CDATA[Amelia Halliday]]></dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Technical Content]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs?p=183381</guid>
		<description><![CDATA[To optimize your modeling processes, there are a number of built-in materials available for you to use in the COMSOL Multiphysics® software. Along with these materials are features and functionality that allow you to efficiently assign materials to geometric entities in your model. These tools help expedite the process of assigning materials, specifying material properties, and even comparing the impact of different materials on your simulation results. Here, we&#8217;ll highlight three tutorial videos that showcase how to use such tools. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>To optimize your modeling processes, there are a number of built-in materials available for you to use in the COMSOL Multiphysics® software. Along with these materials are features and functionality that allow you to efficiently assign materials to geometric entities in your model. These tools help expedite the process of assigning materials, specifying material properties, and even comparing the impact of different materials on your simulation results. Here, we&#8217;ll highlight three tutorial videos that showcase how to use such tools.</p>
<p><span id="more-183381"></span></p>
<h3>Conduct Material Sweeps to Automate Comparing Materials</h3>
<p>When assigning materials to your model geometry, you may want to experiment with a few options and see how different materials affect your simulation results. In COMSOL Multiphysics, you can automate this process via the <em>Material Sweep</em> parametric study and <em>Material Switch</em> feature. As such, you do not need to add several materials one at a time and compute for the corresponding solution. In addition to saving you time during model set up, this facilitates the comparison of results during postprocessing.</p>
<p><a href="https://cdn.comsol.com/wordpress/2016/09/Switching-between-results-in-material-sweep.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2016/09/Switching-between-results-in-material-sweep.png" title="Switch functionality" alt="Switching between different simulation results based on the material." width="1000" height="463" class="alignnone size-full wp-image-183431" /></a><br />
<em>Screenshot from the material sweeps video, showcasing the ability to switch between different results based on the material.</em></p>
<p>The Material Switch node houses the materials that you want to sweep over and provides functionality to automatically switch materials while your model is solving.</p>
<p>In the five-minute tutorial video below, we outline the procedure for performing a material sweep in your model and then walk you through the steps for doing so. This includes adding a Material Switch node; specifying parts of the geometry that the material sweep will be applied to; selecting the materials to switch between; adding the Material Sweep parametric study; and finally postprocessing the sweep&#8217;s results. We also briefly discuss how you can customize the materials being swept over as well as how to easily toggle between different sets of results obtained from your material sweep.</p>
<h4>Video Tutorial: How to Sweep and Compare Materials in COMSOL Multiphysics</h4>
<p><script src="https://fast.wistia.com/assets/external/E-v1.js" async></script>
<div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;">
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
<div class="wistia_embed wistia_async_jubpqwditn seo=false videoFoam=true" style="height:100%;position:relative;width:100%">
<div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/jubpqwditn/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" onload="this.parentNode.style.opacity=1;" title="" /></div>
</div>
</div>
</div>
<h3>Easily Define Material Properties Using Material Functions</h3>
<p>As mentioned earlier, COMSOL Multiphysics features a large collection of built-in materials that are available regardless of which modules you hold a license for. Upon adding any of these materials to your model, you will notice that the material properties are provided with certain default values. </p>
<p>In some cases, material properties are constant. In other cases, they may vary in space or be dependent on a physics variable such as temperature. If you want to make a constant material property variable, or if the built-in variation is not what you want to use, you can define your own function. In COMSOL Multiphysics, there are three types of functions that you can use to define a material property: <em>Interpolation</em>, <em>Analytic</em>, and <em>Piecewise</em> functions.</p>
<p><a href="https://cdn.comsol.com/wordpress/2016/09/Interpolation-function-data-table-and-plot.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2016/09/Interpolation-function-data-table-and-plot.png" title="Interpolation function" alt="Screenshot showing a data table and plot for an Interpolation function in COMSOL Multiphysics." width="991" height="574" class="alignnone size-full wp-image-183441" /></a><br />
<em>Data table and plot for an Interpolation function.</em></p>
<p>Interpolation functions are used to define a material property through reading in data from a table or file that contains values of the function at discrete points. You can enter this data manually or import it from an external file. This is useful when you have material properties that are obtained from experiments. COMSOL Multiphysics will automatically evaluate and then generate a function that fits the data you provide. Then, you can also choose how the function interpolates between the measured values or extrapolates outside of your specified range of data.</p>
<p><a href="https://cdn.comsol.com/wordpress/2016/09/Analytic-function-input-fields-and-plot.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2016/09/Analytic-function-input-fields-and-plot.png" title="Analytic function" alt="The input fields and plot for an Analytic function." width="986" height="567" class="alignnone size-full wp-image-183451" /></a><br />
<em>Input fields and plot for an Analytic function.</em></p>
<p>Analytic functions are used to define a function using built-in mathematical functions or other user-defined functions. You can enter an expression, specify the input arguments, and define the value range for each of the arguments in your equation.</p>
<p><a href="https://cdn.comsol.com/wordpress/2016/09/Piecewise-function-settings.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2016/09/Piecewise-function-settings.png" title="Piecewise function" alt="Settings for a Piecewise function, one of the functions that can be used to define a material property in COMSOL Multiphysics." width="354" height="566" class="alignnone size-full wp-image-183461" /></a><br />
<em>Settings for a Piecewise function.</em></p>
<p>Piecewise functions are used to define a material property using different expressions over different intervals. The start and end point for each set of values, as well as the function applicable to that interval, can be entered manually or imported from an external file. The intervals that you define cannot overlap and there cannot be any holes between the intervals. That way, you have a continuous function uniquely defined in terms of the independent variable.</p>
<p>In the following seven-minute tutorial video, we discuss how to create and define Interpolation, Analytic, and Piecewise functions for any material property in your model, the advantages of using each type, and best practices to keep in mind when creating them. We also go over the settings for each function type, demonstrate how the selection of options such as <em>Extrapolation</em> will change your data plot, and show how you can call out your function in the <em>Material Contents</em> table.</p>
<h4>Video Tutorial: Use Functions to Define a Material Property</h4>
<p><script src="https://fast.wistia.com/assets/external/E-v1.js" async></script>
<div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;">
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
<div class="wistia_embed wistia_async_1czpkwrar4 seo=false videoFoam=true" style="height:100%;position:relative;width:100%">
<div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/1czpkwrar4/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" onload="this.parentNode.style.opacity=1;" title="" /></div>
</div>
</div>
</div>
<h3>Utilize Global Materials and Material Links for Multiple Components</h3>
<p>While creating a model in COMSOL Multiphysics, you will at some point need to identify the materials that your objects are made of. Normally, this requires completing a series of steps in which you open the Add Material or Material Browser windows; choose the material; select and add it to your component; and then go into the material node&#8217;s settings to select the parts of the geometry to which the material applies. You would then need to repeat this procedure for each unique material that you want to include in your simulation. In COMSOL Multiphysics, you can expedite the above process using global materials and material links.</p>
<p><a href="https://cdn.comsol.com/wordpress/2016/09/Global-materials-and-material-links-functionality.png" target="_blank"><img src="https://cdn.comsol.com/wordpress/2016/09/Global-materials-and-material-links-functionality.png" title="Global materials and material links" alt="Screenshot showing the use of global materials and material links functionality." width="699" height="632" class="alignnone size-full wp-image-183471" /></a><br />
<em>Screenshot displaying use of the global materials and material links functionality.</em></p>
<p>When a material is added under the <em>Global Materials</em> node, it is available to use anywhere throughout the model. Further, global materials can be used for any geometric entity level, whether you assign them to domains, boundaries, edges, or points.</p>
<p>Material links are used locally under a component&#8217;s material node to refer to a global material. This is advantageous when you have a COMSOL Multiphysics file that contains multiple components that are made up of similar materials, as you only need to specify the material once under the Global Materials node and can then link to it under each individual component. It is also beneficial for models in which the same material is assigned to different geometric entity levels such as domains and boundaries. In this case, you would again only need to add the material once and could also add a separate <em>Material Link</em> node for each geometric entity type.</p>
<p>In the six-minute tutorial video below, we show you how to use the global materials and material links functionality. We begin by demonstrating how to add global materials to your model and discuss the differences between adding materials globally and locally. Then, we walk through the steps of how to add material links to your model components and assign them to the geometry. After watching this video, we encourage you to try out this functionality yourself and see firsthand the ease with which you can assign materials in a model that contains multiple components or when you want to use the same materials on multiple parts.</p>
<h4>Video Tutorial: Use the Same Material for Multiple Components in COMSOL Multiphysics</h4>
<p><script src="https://fast.wistia.com/assets/external/E-v1.js" async></script>
<div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;">
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
<div class="wistia_embed wistia_async_11ezc8dizt seo=false videoFoam=true" style="height:100%;position:relative;width:100%">
<div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/11ezc8dizt/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" onload="this.parentNode.style.opacity=1;" title="" /></div>
</div>
</div>
</div>
<h3>Efficiently Define the Materials Used in Your Simulation Studies</h3>
<p>You can significantly expedite the process of assigning materials to your model geometry using the features and functionality discussed here. To complement these tools, we&#8217;ve created instructional videos to help you learn how to utilize them in your own simulations. Whether you have a model file that involves multiple components, need to define a complicated material property, or have to test different materials in your simulation, COMSOL Multiphysics features built-in tools that make this process simpler and more efficient for you. </p>
<h3>Browse Additional Tutorial Videos Relating to Materials</h3>
<ul>
<li>To learn more about specifying and defining materials in your COMSOL Multiphysics models, watch this introductory video series: <a href="https://www.comsol.com/video/materials-comsol-multiphysics-models">How to Use Materials in Your COMSOL Multiphysics Models</a></li>
<li>Head over to our Video Gallery to check out other videos on the topic of <a href="https://www.comsol.com/videos?workflow%5B%5D=workflowstep-materials&amp;sortOrder=&amp;s=">material-based features and functionality</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/efficiently-assign-materials-in-your-comsol-multiphysics-model/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thermal Modeling of Phase-Change Materials with Hysteresis</title>
		<link>https://www.comsol.no/blogs/thermal-modeling-of-phase-change-materials-with-hysteresis/</link>
		<comments>https://www.comsol.no/blogs/thermal-modeling-of-phase-change-materials-with-hysteresis/#comments</comments>
		<pubDate>Thu, 24 Mar 2016 08:02:34 +0000</pubDate>
		<dc:creator><![CDATA[Walter Frei]]></dc:creator>
				<category><![CDATA[Equation-Based Modeling]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Technical Content]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs/?p=147981</guid>
		<description><![CDATA[In today&#8217;s blog post, we will introduce a procedure for thermally modeling a material with hysteresis, which means that the melting temperature is different from the solidification temperature. Such behavior can be modeled by introducing a temperature-dependent specific heat function that is different if the material has been heated or cooled past a certain point. We can implement this behavior in COMSOL Multiphysics via the Previous Solution operator and a little bit of equation-based modeling. Let&#8217;s find out how&#8230; What [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In today&#8217;s blog post, we will introduce a procedure for thermally modeling a material with hysteresis, which means that the melting temperature is different from the solidification temperature. Such behavior can be modeled by introducing a temperature-dependent specific heat function that is different if the material has been heated or cooled past a certain point. We can implement this behavior in COMSOL Multiphysics via the <em>Previous Solution</em> operator and a little bit of equation-based modeling. Let&#8217;s find out how&#8230;</p>
<p><span id="more-147981"></span></p>
<h3>What Is Thermal Hysteresis and How Is It Modeled?</h3>
<p>A material with thermal hysteresis will exhibit a solidification temperature that is different from the melting temperature. Such materials have applications in heat sinks and thermal storage systems and are even used by living organisms, such as <a href="https://en.wikipedia.org/wiki/Antifreeze_protein" target="_blank">fish and insects living in cold climates</a>. We won&#8217;t concern ourselves here with the exact physical mechanisms by which thermal hysteresis happens, but rather focus on how to model it.</p>
<p>We will begin by considering a representative material with hysteresis that is incompressible and plot out the <a href="https://en.wikipedia.org/wiki/Enthalpy" target="_blank">enthalpy</a> of the material as a function of temperature, as shown below. When the material is in the solid state and is being heated, the enthalpy is given by the bottom curve or path. As the material passes the melting temperature, it becomes completely liquid. When this material is subsequently cooled in the liquid state, it will follow the upper path, thus the material remains liquid at temperatures below the melting temperature. Once the freezing temperature is reached, the material becomes completely solid. If the material is then heated back up, it will follow the bottom path, and so on. In the completely molten or completely solid state, the two enthalpy curves overlap. The latent heat of melting and solidification is the jump in these curves.</p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Enthalpy-versus-temperature-plot.png" title="" alt="Plot comparing enthalpy and temperature for an idealized incompressible material." width="800" height="600" class="alignnone size-full wp-image-148031" /><br />
<em>Enthalpy versus temperature for an idealized incompressible material.</em></p>
<p>Now, the above curve represents a bit of an idealized case that would only occur in the real world if we had a perfectly pure material. It is also a bit impractical for computational modeling purposes since this immediate transition between states represents a discontinuity that is quite difficult to solve numerically. </p>
<p>However, if we introduce a small transition zone over which the enthalpy varies smoothly, then we have a model that is much more amenable to numerical analysis. The physical interpretation of this is that the material changes phase over some finite temperature and in the intermediate range, the material is a mixture of both solid and liquid. Only once the material is fully outside of the transition zone will it switch over to following the other curve. </p>
<p>Note that we have centered the smoothing around the nominal melting and freezing temperatures, so the fully molten state is at a temperature slightly higher than the nominal melting temperature and the fully solid state is slightly below the freezing temperature. The plot below shows a gradual smoothing, but this transitional zone can be made very narrow to better approximate the behavior if we really did have a perfectly pure material.</p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Gradual-smoothing-plot.png" title="" alt="Gradual smoothing plot." width="800" height="600" class="alignnone size-full wp-image-148041" /><br />
<em>A smoothed enthalpy curve is more amenable to numerical analysis.</em></p>
<p>Since the material is assumed to be incompressible, the enthalpy depends only on the temperature. The above plot will also give us the specific heat, which is the derivative of enthalpy with respect to temperature. The specific heat is constant except for a small region around the melting and freezing temperatures.</p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Specific-heat-graph.png" title="" alt="A graph indicating the specific heat, a derivative of the enthalpy." width="650" height="425" class="alignnone size-full wp-image-148051" /><br />
<em>The specific heat is the derivative of the enthalpy with respect to temperature and is different if the material is heated or cooled.</em></p>
<p>This temperature-dependent specific heat data can be put directly into the governing equation for heat transfer and, along with an appropriate set of boundary conditions, can be solved in COMSOL Multiphysics. In fact, the existing Application Gallery example, <a href="http://www.comsol.com/model/cooling-and-solidification-of-metal-12701">Cooling and Solidification of Metal</a>, makes use of such a temperature-dependent specific heat, albeit without hysteresis. The only additional requirement for modeling thermal hysteresis is to introduce a switch to determine which path to follow. Let&#8217;s now look at how to implement this in COMSOL Multiphysics.</p>
<h3>Implementing Thermal Hysteresis in COMSOL Multiphysics</h3>
<p>Here, we will look at a simple example model of a phase-change material within a thin-walled container. One side wall is perfectly insulated and the wall on the other side is held at a known temperature that varies periodically over time. A schematic of this is shown below. We are interested in computing the temperature as a function of time and position through the thickness and can reduce this to a one-dimensional model to get started.</p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Thermal-model-schematic.png" title="" alt="Thermal model schematic." width="750" height="340" class="alignnone size-full wp-image-148061" /><br />
<em>Schematic of the thermal model. A time-varying temperature is applied at one side.</em></p>
<p>Our modeling begins by setting up some physical constants via the <em>Global Parameters</em> that define the melting and freezing temperatures and the smoothing to apply to the enthalpy functions. The two smoothed enthalpy functions plotted earlier are implemented as shown in the screenshot below. We can here take advantage of the built-in <em>Step</em> function, which additionally features the option to apply a user-defined smoothing. </p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Implementation-of-the-enthalpy-functions.png" title="" alt="Implementation of the enthalpy functions in COMSOL Multiphysics." width="600" height="375" class="alignnone size-full wp-image-148071" /><br />
<em>Implementation of the enthalpy functions shown above, using the smoothed step function. Note that the units have been defined.</em></p>
<p>The geometry of our model is simply a 1D interval representing the phase-change material region. The <em>Heat Transfer in Solids</em> interface is used, since we are assuming that there is no fluid flow. The material properties are as shown below.</p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Materials-properties-definitions.png" title="" alt="A screenshot depicting the material properties." width="593" height="727" class="alignnone size-full wp-image-148081" /><br />
<em>Screenshot showing the material properties definitions in the phase-change material.</em></p>
<p>The thermal conductivity and the density are constants. The specific heat (the heat capacity at constant pressure) is defined as:</p>
<pre>SorL*d(H_StoL(T),T)+(1-SorL)*d(H_LtoS(T),T)</pre>
<p>where the differentiation operator takes the derivatives of the two different enthalpy functions with respect to temperature and the <code>SorL</code> variable defines the local material behavior as either <em>Solid</em> or <em>Liquid</em>. The <code > SorL</code> variable can be either zero or one and can be different in each element. </p>
<p>A <em>Domain ODEs and DAEs</em> interface is used to define this variable, with interface settings as illustrated below. Note that the dependent variable and the source term are both dimensionless and the shape function is of the type <em>Discontinuous Lagrange &#8212; Constant</em>, meaning that the <code>SorL</code> variable will take on a different constant value within each element.</p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Domain-ODEs-and-DAEs-interface-settings.png" title="" alt="Domain ODEs and DAEs interface settings." width="548" height="731" class="alignnone size-full wp-image-148101" /><br />
<em>Settings for the </em>Domain ODEs and DAEs<em> interface that tracks the material state.</em></p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Source-Term-settings2.png" title="" alt="A screenshot showing the Source Term settings." width="543" height="532" class="alignnone size-full wp-image-161781" /><br />
<em>The Source Term settings.</em></p>
<p>The above screenshot depicts the equation that is being solved for in the <em>Domain ODEs and DAEs</em> interface. Let&#8217;s examine in detail the <em>Source Term</em> equation used:</p>
<pre>SorL-nojac(if(T&gt; T_top,0,if(T&lt; T_bot,1,SorL)))</pre>
<p>This equation is evaluated at the centroid of each element and implements in a single line the following: </p>
<p>If the current temperature is greater than the temperature of complete melting (the nominal melting temperature plus half the smoothing temperature), then the material has passed its solid-to-liquid phase-change temperature, so set <code>SorL = 0</code>. This means that the liquid-to-solid enthalpy curve is followed. If the current temperature is less than the temperature of complete solidification (the nominal freezing temperature minus half the smoothing temperature), then the material has passed its liquid-to-solid phase-change temperature, so set <code>SorL = 1</code>. This means that the solid-to-liquid enthalpy curve is followed. Otherwise, when neither of the previous two conditions are satisfied, leave the <code > SorL</code> variable at its previous value, meaning that there is no change of path while in the intermediate zone.</p>
<p>The <code>nojac()</code> operator tells the software to exclude the enclosed expression from the Jacobian computation, thus it does not try to differentiate the enclosed expression but merely evaluates the expression itself at each time step.</p>
<p>The <code>SorL</code> variable is used in one place in the model: in the definition of the specific heat in the phase-change material domain, as shown earlier. It is also important to set the initial value of the variable appropriately. If the initial temperature of the phase-change material is above or below the temperature of complete melting or solidification, then this choice is unambiguous; otherwise, you must choose the initial state of the material. In the example here, we will consider the initial temperature of the system to be below the freezing temperature, so the material will initially follow the solid-to-liquid path. Therefore, the initial value of the <code > SorL</code> variable is set to one.</p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Solver-settings.png" title="" alt="Solver settings with the Previous Solution operator applied." width="593" height="354" class="alignnone size-full wp-image-148121" /><br />
<em>The solver settings showing the usage of the </em>Previous Solution <em>operator.</em></p>
<p>In terms of solving the model, we only need to keep in mind that the <code>SorL</code> variable needs to be evaluated at the previous time step using the <em>Previous Solution</em> operator in the solver sequence, as shown in the screenshot above. We can also use a <a href="http://www.comsol.com/blogs/improving-convergence-multiphysics-problems/">segregated solver</a> and, of course, we should investigate tightening the time-dependent solver tolerances, the <a href="http://www.comsol.com/blogs/solving-linear-static-finite-element-models/">scaling of the dependent variables</a>, and study the convergence of the solution with <a href="http://www.comsol.com/multiphysics/mesh-refinement">mesh refinement</a>.</p>
<p>Let&#8217;s now look at some results. In the plots below, we see the temperature through the thickness of our modeling domain for the heating and cooling of the phase-change material. Observe that the slope of the temperature as a function of position changes as the material passes through the melting and freezing points. This is due to extra heat that must be added or removed as the material changes phase.</p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Heating-of-the-phase-change-material.png" title="" alt="Plot depicting temperature over time in the phase-change material during heating." width="600" height="400" class="alignnone size-full wp-image-148131" /><br />
<em>Temperature over time in the phase-change material during heating. The blue line is the melting temperature.</em></p>
<p><img src="https://cdn.comsol.com/wordpress/2016/03/Cooling-of-the-phase-change-material.png" title="" alt="Plot showing temperature over time in the phase-change material during cooling." width="600" height="400" class="alignnone size-full wp-image-148141" /><br />
<em>Temperature over time in the material during cooling. The red line is the freezing temperature.</em></p>
<p><script src="https://fast.wistia.com/assets/external/E-v1.js" async></script>
<div class="wistia_responsive_padding" style="padding:66.56% 0 0 0;position:relative;">
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
<div class="wistia_embed wistia_async_wmlsjaknff playerPreference=html5 seo=false videoFoam=true" style="height:100%;position:relative;width:100%">
<div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/wmlsjaknff/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" onload="this.parentNode.style.opacity=1;" title="" /></div>
</div>
</div>
</div>
<p><em>An animation showing the combined temperature profile over time during heating and cooling. The blue and red lines are the melting and freezing temperatures.</em> </p>
<div class="flex-center">
<a href="/model/modeling-phase-change-with-hysteresis-46801" class="btn-solid btn-md btn-red">Get the Thermal Hysteresis Tutorial</a>
</div>
<h3>Closing Remarks on Modeling Materials with Thermal Hysteresis</h3>
<p>Today, we have introduced an approach appropriate for modeling materials exhibiting thermal hysteresis under the assumption of constant density and that the material must go completely above and below the melting and freezing temperatures to change phase. This modeling approach makes use of the <em>Previous Solution</em> operator and equation-based modeling. For more details on the usage of the <em>Previous Solution</em> operator and further examples, please see:</p>
<ul>
<li><a href="http://www.comsol.com/blogs/using-the-previous-solution-operator-in-transient-modeling">Using the Previous Solution Operator in Transient Modeling</a></li>
<li><a href="http://www.comsol.com/blogs/tracking-material-damage-with-the-previous-solution-operator">Tracking Material Damage with the Previous Solution Operator</a></li>
</ul>
<p>The approach shown here is a bit simplified for the sake of explanation. If you are interested in the modeling of heat transfer with phase change, either with or without hysteresis, we recommend that you look to the Heat Transfer Module, which has a built-in interface for modeling heat transfer with phase change, as <a href="http://www.comsol.com/blogs/phase-change-cooling-solidification-metal/">introduced here</a>.</p>
<p>If you are instead interested in the modeling of irreversible changes in phase, then you may also want to take a look at our <a href="http://www.comsol.com/blogs/modeling-the-thermal-curing-process/">previous blog post on thermal curing</a> as well as <a href="http://www.comsol.com/blogs/tracking-material-damage-with-the-previous-solution-operator">tracking material damage with the <em>Previous Solution</em> operator</a>.</p>
<p>Looking to model thermal hysteresis in COMSOL Multiphysics or have other questions about this process? Please <a href="http://www.comsol.com/contact">contact us</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/thermal-modeling-of-phase-change-materials-with-hysteresis/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tracking Material Damage with the Previous Solution Operator</title>
		<link>https://www.comsol.no/blogs/tracking-material-damage-with-the-previous-solution-operator/</link>
		<comments>https://www.comsol.no/blogs/tracking-material-damage-with-the-previous-solution-operator/#comments</comments>
		<pubDate>Tue, 21 Jul 2015 08:31:20 +0000</pubDate>
		<dc:creator><![CDATA[Walter Frei]]></dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Technical Content]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs/?p=93091</guid>
		<description><![CDATA[When modeling a manufacturing process, such as the heating of an object, it is possible for irreversible damage to occur due to a change in temperature. This may even be a desired step in the process. With the Previous Solution operator, we can model such damage in COMSOL Multiphysics. Here, we will look at the &#8220;baking off&#8221; of a thin coating on a wafer heated by a laser. Heating a Wafer to Remove a Thin Film of Material Let&#8217;s consider [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>When modeling a manufacturing process, such as the heating of an object, it is possible for irreversible damage to occur due to a change in temperature. This may even be a desired step in the process. With the <em>Previous Solution</em> operator, we can model such damage in COMSOL Multiphysics. Here, we will look at the &#8220;baking off&#8221; of a thin coating on a wafer heated by a laser.</p>
<p><span id="more-93091"></span></p>
<h3>Heating a Wafer to Remove a Thin Film of Material</h3>
<p>Let&#8217;s consider a wafer of silicon with a very thin layer of material coated on the surface. This thin film may have been introduced in a previous processing step, and we now want to quickly &#8220;bake off&#8221; this material by heating the wafer with a laser. The wafer is mounted on a spinning stage while the laser heat source traverses back and forth over the surface.</p>
<p>We will consider a layer of material that is very thin compared to the wafer thickness. We can thus assume that the film does not contribute to the thermal mass of the system, nor will it provide any additional conductive heat path. However, this coating will affect the surface emissivity. If the coating is undamaged, the emissivity is 0.8. Once the coating has baked off, the emissivity of that region of the wafer will change to 0.6. This will alter both the amount of heat absorbed from the laser heat source and the heat radiated from the wafer to the surroundings.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/07/Laser-beam-traversing-over-rotating-wafer.jpg" title="" alt="Schematic of a laser beam traversing over a rotating wafer." width="1000" height="328" class="alignnone size-full wp-image-93151" /><br />
<em>A laser beam traversing over a rotating wafer ablates a thin surface coating when the temperature is high enough.</em></p>
<p>We will not concern ourselves too greatly with the process by which the coating is removed from the wafer. Although the actual process may include phase change, melting, boiling, ablation, and chemical reactions, we are, in this case, dealing with a very thin layer of material. Thus, we can simply say that once the temperature of the wafer surface exceeds 60°C, the coating immediately disappears. Under the assumption of very fast dynamics of the material removal process relative to the heating of the wafer, this is a valid approach.</p>
<h3>Implementation of the Material Removal Model</h3>
<p>We will begin with the previously developed model of a <a href="http://www.comsol.com/blogs/using-general-extrusion-operators-to-model-rotation/">rotating wafer exposed to a moving heat source</a>. An additional boundary equation will be added to our existing model. Hence, we need to model this in a coordinate system that moves with the rotation of the wafer.</p>
<p>The equation we add will track the surface emissivity on the top boundary of the wafer. The <em>Previous Solution</em> operator is used since we simply want to change the surface emissivity once the temperature gets above the specified value and leave it otherwise unchanged. We have already introduced the use of the <em>Previous Solution</em> operator in a <a href="http://www.comsol.com/blogs/using-the-previous-solution-operator-in-transient-modeling/">previous blog entry</a>. We will now focus more specifically on modeling the removal of the film from the wafer surface.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/07/Settings-for-Boundary-ODEs-and-DAEs-interface.png" title="" alt="A screenshot of the settings for the Boundary ODEs and DAEs interface in COMSOL Multiphysics." width="532" height="807" class="alignnone size-full wp-image-93411" /><br />
<em>The settings for the</em> Boundary ODEs and DAEs <em>interface. Note the shape function settings.</em></p>
<p><img src="https://cdn.comsol.com/wordpress/2015/07/Domain-settings-and-initial-values-settings-for-the-Boundary-ODEs-and-DAEs-interface.jpg" title="" alt="A screen capture of the Domain and Initial Value settings for the Boundary ODEs and DAEs interface in the Previous Solution operator." width="976" height="646" class="alignnone size-full wp-image-93321" /><br />
<em>The domain settings and initial values settings for the</em> Boundary ODEs and DAEs <em>interface, which models the emissivity of the surface of the wafer.</em></p>
<p>The settings for the <em>Boundary ODEs and DAEs</em> interface are shown above. Note that a <em>Constant Discontinuous Lagrange</em> discretization is used to solve for the field &#8220;emissivity&#8221;, the surface emissivity. This discretization is equivalent to saying that the emissivity will have a constant value over each element and that the field can be discontinuous across different elements. We are assuming that the film is either present or not present, so the surface emissivity will have two discrete states. The initial value of the field variable is the undamaged value of the surface emissivity.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/07/Settings-for-Heat-Flux-boundary-conditions.jpg" title="" alt="A screen capture of the settings for the Heat Flux boundary condition." width="551" height="537" class="alignnone size-full wp-image-93331" /><br />
<em>The settings for the Heat Flux boundary condition use the computed surface emissivity.</em></p>
<p><img src="https://cdn.comsol.com/wordpress/2015/07/Settings-for-Diffuse-Surface-boundary-conditions.jpg" title="" alt="A screenshot of the settings for the Diffuse Surface boundary condition." width="551" height="668" class="alignnone size-full wp-image-93341" /><br />
<em>The settings for the Diffuse Surface boundary condition use the computed surface emissivity.</em></p>
<p>The computed surface emissivity is used in two places within the <em>Heat Transfer in Solids</em> interface, as shown above. The applied Heat Flux boundary condition and the radiation of ambient temperature via the Diffuse Surface boundary condition both reference the emissivity field.</p>
<p>Since the surface emissivity is constant across each element, a finite element mesh size of 0.3 mm is used to obtain a smoother representation of the damage field. Also, the relative solver tolerance is set to 1e-6.</p>
<p>The results of the simulation are depicted in the animation below. As the temperature rises, certain portions of the wafer surface rise above the ablation temperature and the surface emissivity changes. The process is complete once the entirety of the wafer surface has been heated above the desired temperature.</p>
<div class="wistia_responsive_padding" style="padding:75.0% 0 0 0;position:relative;">
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
<div id="wistia_74arwtkpiz" class="wistia_embed" style="width:100%;height:100%;">
<div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/74arwtkpiz/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" onload="this.parentNode.style.opacity=1;" title="" /></div>
</div>
</div>
</div>
<p><script charset="ISO-8859-1" src="https://fast.wistia.com/assets/external/E-v1.js"></script><script>wistiaEmbed = Wistia.embed("74arwtkpiz", {  videoFoam: "true",  playerPreference: "html5"});</script></p>
<p><em>An animation of the temperature field of the laser heating the rotating wafer (left). The dark gray color indicates the damage zone (right).</em> </p>
<h3>Summary</h3>
<p>We have demonstrated how to model an irreversible change in the state of a material. In this case, we have analyzed the removal of a thermodynamically negligible thin layer of material from the surface of a wafer and modified the resultant surface emissivity as a consequence. The technique outlined here for using the <em>Previous Solution</em> operator can also be used in many other cases. What comes to your mind?</p>
<p>If you are interested in downloading the model related to this article,<br />
it is available in our <a href="http://www.comsol.com/model/laser-heating-of-a-silicon-wafer-with-ablation-28241">Application Gallery</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/tracking-material-damage-with-the-previous-solution-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modeling Laser-Material Interactions in COMSOL Multiphysics</title>
		<link>https://www.comsol.no/blogs/modeling-laser-material-interactions-in-comsol-multiphysics/</link>
		<comments>https://www.comsol.no/blogs/modeling-laser-material-interactions-in-comsol-multiphysics/#comments</comments>
		<pubDate>Mon, 22 Jun 2015 08:07:40 +0000</pubDate>
		<dc:creator><![CDATA[Walter Frei]]></dc:creator>
				<category><![CDATA[Electrical]]></category>
		<category><![CDATA[Electromagnetic Heating]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Ray Optics]]></category>
		<category><![CDATA[RF & Microwave Engineering]]></category>
		<category><![CDATA[Wave Optics]]></category>
		<category><![CDATA[Heat Transfer Module]]></category>
		<category><![CDATA[Ray Optics Module]]></category>
		<category><![CDATA[RF Module]]></category>
		<category><![CDATA[Technical Content]]></category>
		<category><![CDATA[Wave Optics Module]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs/?p=87691</guid>
		<description><![CDATA[A question that we are asked all of the time is if COMSOL Multiphysics can model laser-material interactions and heating. The answer, of course, depends on exactly what type of problem you want to solve, as different modeling techniques are appropriate for different problems. Today, we will discuss various approaches for simulating the heating of materials illuminated by laser light. An Introduction to Modeling Laser-Material Interactions While many different types of laser light sources exist, they are all quite similar [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>A question that we are asked all of the time is if COMSOL Multiphysics can model laser-material interactions and heating. The answer, of course, depends on exactly what type of problem you want to solve, as different modeling techniques are appropriate for different problems. Today, we will discuss various approaches for simulating the heating of materials illuminated by laser light.</p>
<p><span id="more-87691"></span></p>
<h3>An Introduction to Modeling Laser-Material Interactions</h3>
<p>While many different types of laser light sources exist, they are all quite similar in terms of their outputs. Laser light is very nearly single frequency (single wavelength) and coherent. Typically, the output of a laser is also focused into a narrow collimated beam. This collimated, coherent, and single frequency light source can be used as a very precise heat source in a wide range of applications, including <a href="http://www.comsol.com/paper/optics-at-the-nanoscale-merging-nanoparticles-with-light-5097">cancer treatment</a>, <a href="http://www.comsol.com/paper/a-phase-field-approach-to-model-laser-power-control-in-spot-laser-welding-18505">welding</a>, <a href="http://www.comsol.com/paper/excimer-laser-annealing-of-amorphous-silicon-layers-11683">annealing</a>, <a href="http://www.comsol.com/paper/simulation-of-laser-material-interactions-for-dynamic-transmission-electron-micr-8864">material research</a>, and <a href="http://www.comsol.com/paper/transient-pseudo-3d-model-of-multi-beam-laser-thermal-treatment-system-11559">semiconductor processing</a>.</p>
<p>When laser light hits a solid material, part of the energy is absorbed, leading to localized heating. Liquids and gases (and plasmas), of course, can also be heated by lasers, but the heating of fluids almost always leads to significant convective effects. Within this blog post, we will neglect convection and concern ourselves only with the heating of solid materials.</p>
<p>Solid materials can be either partially transparent or completely opaque to light at the laser wavelength. Depending upon the degree of transparency, different approaches for modeling the laser heat source are appropriate. Additionally, we must concern ourselves with the relative scale as compared to the wavelength of light. If the laser is very tightly focused, then a different approach is needed compared to a relatively wide beam. If the material interacting with the beam has geometric features that are comparable to the wavelength, we must additionally consider exactly how the beam will interact with these small structures.</p>
<p>Before starting to model any laser-material interactions, you should first determine the optical properties of the material that you are modeling, both at the laser wavelength and in the infrared regime. You should also know the relative sizes of the objects you want to heat, as well as the laser wavelength and beam characteristics. This information will be useful in guiding you toward the appropriate approach for your modeling needs.</p>
<h3>Surface Heat Sources</h3>
<p>In cases where the material is opaque, or very nearly so, at the laser wavelength, it is appropriate to treat the laser as a surface heat source. This is most easily done with the <em>Deposited Beam Power</em> feature (shown below), which is available with the Heat Transfer Module as of COMSOL Multiphysics version 5.1. It is, however, also quite easy to manually set up such a surface heat load using only the COMSOL Multiphysics core package, as <a href="http://www.comsol.com/model/laser-heating-of-a-silicon-wafer-13835">shown in the example here</a>.</p>
<p>A surface heat source assumes that the energy in the beam is absorbed over a negligibly small distance into the material relative to the size of the object that is heated. The finite element mesh only needs to be fine enough to resolve the temperature fields as well as the laser spot size. The laser itself is not explicitly modeled, and it is assumed that the fraction of laser light that is reflected off the material is never reflected back. When using a surface heat load, you must manually account for the absorptivity of the material at the laser wavelength and scale the deposited beam power appropriately.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/06/Deposited-Beam-Power-Feature.png" title="" alt="An image of the Deposited Beam Power feature used to model laser-material interactions." width="1000" height="518" class="alignnone size-full wp-image-87721" /><br />
<em>The Deposited Beam Power feature in the Heat Transfer Module is used to model two crossed laser beams. The resultant surface heat source is shown.</em></p>
<h3>Volumetric Heat Sources</h3>
<p>In cases where the material is partially transparent, the laser power will be deposited within the domain, rather than at the surface, and any of the different approaches may be appropriate based on the relative geometric sizes and the wavelength.</p>
<h4>Ray Optics</h4>
<p>If the heated objects are much larger than the wavelength, but the laser light itself is converging and diverging through a series of optical elements and is possibly reflected by mirrors, then the functionality in the <a href="http://www.comsol.com/ray-optics-module">Ray Optics Module</a> is the best option. In this approach, light is treated as a ray that is traced through homogeneous, inhomogeneous, and lossy materials.</p>
<p>As the light passes through lossy materials (e.g., optical glasses) and strikes surfaces, some power deposition will heat up the material. The absorption within domains is modeled via a complex-valued refractive index. At surfaces, you can use a reflection or an absorption coefficient. Any of these properties can be temperature dependent. For those interested in using this approach, <a href="http://www.comsol.com/model/thermally-induced-focal-shift-19955">this tutorial model</a> from our Application Gallery provides a great starting point. </p>
<p><img src="https://cdn.comsol.com/wordpress/2015/06/Laser-beam-focused-through-two-lenses.png" title="" alt="A graphic of a laser beam focused through two lenses." width="800" height="540" class="alignnone size-full wp-image-87731" /><br />
<em>A laser beam focused through two lenses. The lenses heat up due to the high-intensity laser light, shifting the focal point.</em></p>
<h4>Beer-Lambert Law</h4>
<p>If the heated objects and the spot size of the laser are much larger than the wavelength, then it is appropriate to use the Beer-Lambert law to model the absorption of the light within the material. This approach assumes that the laser light beam is perfectly parallel and unidirectional.</p>
<p>When using the Beer-Lambert law approach, the absorption coefficient of the material and reflection at the material surface must be known. Both of these material properties can be functions of temperature. The appropriate way to set up such a model is described in our earlier blog entry &#8220;<a href="http://www.comsol.com/blogs/modeling-laser-material-interactions-with-the-beer-lambert-law/">Modeling Laser-Material Interactions with the Beer-Lambert Law</a>&#8220;.</p>
<p>You can use the Beer-Lambert law approach if you know the incident laser intensity and if there are no reflections of the light within the material or at the boundaries. </p>
<p><img src="https://cdn.comsol.com/wordpress/2015/06/Laser-heating-with-Beer-Lambert-law.png" title="" alt="A graphic of the Beer-Lambert law used to model laser heating in a semitransparent solid." width="750" height="344" class="alignnone size-full wp-image-87741" /><br />
<em>Laser heating of a semitransparent solid modeled with the Beer-Lambert law.</em></p>
<h4>Beam Envelope Method</h4>
<p>If the heated domain is large, but the laser beam is tightly focused within it, neither the ray optics nor the Beer-Lambert law modeling approach can accurately solve for the fields and losses near the focus. These techniques do not directly solve Maxwell&#8217;s equations, but instead treat light as rays. The <a href="http://www.comsol.com/blogs/taking-care-of-fast-oscillations-wave-optics-module/">beam envelope method</a>, available within the <a href="http://www.comsol.com/wave-optics-module">Wave Optics Module</a>, is the most appropriate choice in this case.</p>
<p>The beam envelope method solves the full Maxwell&#8217;s equations when the field envelope is slowly varying. The approach is appropriate if the wave vector is approximately known throughout the modeling domain and whenever you know approximately the direction in which light is traveling. This is the case when modeling a <a href="http://www.comsol.com/model/self-focusing-14639">focused laser light</a> as well as waveguide structures like a <a href="http://www.comsol.com/model/mach-zehnder-modulator-15061">Mach-Zehnder modulator</a> or a <a href="http://www.comsol.com/model/optical-ring-resonator-notch-filter-22221">ring resonator</a>. Since the beam direction is known, the finite element mesh can be very coarse in the propagation direction, thereby reducing computational costs.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/06/Laser-beam-focused-in-cylindrical-material-domain.png" title="" alt="An image of a simulation of a laser beam focused in a cylindrical material domain." width="841" height="676" class="alignnone size-full wp-image-87751" /><br />
<em>A laser beam focused in a cylindrical material domain. The intensity at the incident side and within the material are plotted, along with the mesh.</em></p>
<p>The beam envelope method can be combined with the <em>Heat Transfer in Solids</em> interface via the <em>Electromagnetic Heat Source</em> multiphysics couplings. These couplings are automatically set up when you add the <em>Laser Heating</em> interface under <em>Add Physics</em>.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/06/Laser-Heating-interface.png" title="" alt="A screenshot of the Laser Heating interface in COMSOL Multiphysics." width="628" height="367" class="alignnone size-full wp-image-87761" /><br />
<em>The</em> Laser Heating <em>interface adds the</em> Beam Envelopes <em>and the</em> Heat Transfer in Solids <em>interfaces and the multiphysics couplings between them.</em></p>
<h4>Full Wave</h4>
<p>Finally, if the heated structure has dimensions comparable to the wavelength, it is necessary to solve the full Maxwell&#8217;s equations without assuming any propagation direction of the laser light within the modeling space. Here, we need to use the <em>Electromagnetic Waves, Frequency Domain</em> interface, which is available in both the Wave Optics Module and the <a href="http://www.comsol.com/rf-module">RF Module</a>. Additionally, the RF Module offers a <em>Microwave Heating</em> interface (similar to the <em>Laser Heating</em> interface described above) and couples the <em>Electromagnetic Waves, Frequency Domain</em> interface to the <em>Heat Transfer in Solids</em> interface. Despite the nomenclature, the RF Module and the <em>Microwave Heating</em> interface are appropriate over a <a href="http://www.comsol.com/blogs/computational-electromagnetics-modeling-which-module-to-use/">wide frequency band</a>.</p>
<p>The full-wave approach requires a finite element mesh that is fine enough to resolve the wavelength of the laser light. Since the beam may scatter in all directions, the mesh must be reasonably uniform in size. A good example of using the <em>Electromagnetic Waves, Frequency Domain</em> interface: <a href="http://www.comsol.com/model/optical-scattering-by-gold-nanospheres-14697">Modeling the losses in a gold nanosphere illuminated by a plane wave</a>, as illustrated below.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/06/Laser-light-heating-gold-nanosphere.png" title="" alt="A graphic of a gold nanosphere heated by a laser light." width="1000" height="531" class="alignnone size-full wp-image-87771" /><br />
<em>Laser light heating a gold nanosphere. The losses in the sphere and the surrounding electric field magnitude are plotted, along with the mesh.</em></p>
<h3>Modeling Heat Transfer, Convection, and Reradiation Within and Around a Material</h3>
<p>You can use any of the previous five approaches to model the power deposition from a laser source in a solid material. Modeling the temperature rise and heat flux within and around the material additionally requires the <em>Heat Transfer in Solids</em> interface. Available in the core <a href="http://www.comsol.com/comsol-multiphysics">COMSOL Multiphysics</a> package, this interface is suitable for modeling heat transfer in solids and features fixed temperature, insulating, and heat flux boundary conditions. The interface also includes various boundary conditions for modeling convective heat transfer to the surrounding atmosphere or fluid, as well as modeling radiative cooling to ambient at a known temperature. </p>
<p>In some cases, you may expect that there is also a fluid that provides significant heating or cooling to the problem and cannot be approximated with a boundary condition. For this, you will want to explicitly model the fluid flow using the <a href="http://www.comsol.com/heat-transfer-module">Heat Transfer Module</a> or the <a href="http://www.comsol.com/cfd-module">CFD Module</a>, which can solve for both the temperature and flow fields. Both modules can solve for laminar and turbulent fluid flow. The CFD Module, however, has certain additional turbulent flow modeling capabilities, which are described in detail in <a href="http://www.comsol.com/blogs/which-turbulence-model-should-choose-cfd-application/">this previous blog post</a>.</p>
<p>For instances where you are expecting significant radiation between the heated object and any surrounding objects at varying temperatures, the Heat Transfer Module has the additional ability to compute gray body radiative view factors and radiative heat transfer. This is demonstrated in our <a href="http://www.comsol.com/model/rapid-thermal-annealing-504">Rapid Thermal Annealing tutorial model</a>. When you expect the temperature variations to be significant, you may also need to consider the <a href="http://www.comsol.com/blogs/thermal-modeling-surfaces-wavelength-dependent-emissivity/">wavelength-dependent surface emissivity</a>.</p>
<p>If the materials under consideration are transparent to laser light, it is likely that they are also partially transparent to thermal (infrared-band) radiation. This infrared light will be neither coherent nor collimated, so we cannot use any of the above approaches to describe the reradiation within semitransparent media. Instead, we can use the radiation in participating media approach. This technique is suitable for modeling heat transfer within a material, where there is significant heat flux inside the material due to radiation. An example of this approach from our Application Gallery can be <a href="http://www.comsol.com/model/radiative-cooling-of-a-glass-plate-19693">found here</a>.</p>
<h3>Summary</h3>
<p>In this blog post, we have looked at the various modeling techniques available in the COMSOL Multiphysics environment for modeling the laser heating of a solid material. Surface heating and volumetric heating approaches are presented, along with a brief overview of the heat transfer modeling capabilities. Thus far, we have only considered the heating of a solid material that does not change phase. The heating of liquids and gases &#8212; and the modeling of phase change &#8212; will be covered in a future blog post. Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/modeling-laser-material-interactions-in-comsol-multiphysics/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Modeling Laser-Material Interactions with the Beer-Lambert Law</title>
		<link>https://www.comsol.no/blogs/modeling-laser-material-interactions-with-the-beer-lambert-law/</link>
		<comments>https://www.comsol.no/blogs/modeling-laser-material-interactions-with-the-beer-lambert-law/#comments</comments>
		<pubDate>Mon, 13 Apr 2015 08:11:47 +0000</pubDate>
		<dc:creator><![CDATA[Walter Frei]]></dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Heat Transfer Module]]></category>
		<category><![CDATA[Technical Content]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs/?p=73721</guid>
		<description><![CDATA[High-intensity lasers incident upon a material that is partially transparent will deposit power into the material itself. If the absorption of the incident light can be described by the Beer-Lambert law, it is possible to model this power deposition using the core functionality of COMSOL Multiphysics. We will demonstrate how to model the absorption of the laser light and the resultant heating for a material with temperature-dependent absorptivity. The Beer-Lambert Law and Material Heating When light is incident upon a [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>High-intensity lasers incident upon a material that is partially transparent will deposit power into the material itself. If the absorption of the incident light can be described by the Beer-Lambert law, it is possible to model this power deposition using the core functionality of COMSOL Multiphysics. We will demonstrate how to model the absorption of the laser light and the resultant heating for a material with temperature-dependent absorptivity.</p>
<p><span id="more-73721"></span></p>
<h3>The Beer-Lambert Law and Material Heating</h3>
<p>When light is incident upon a semitransparent material, some of the energy will be absorbed by the material itself. If we can assume that the light is single wavelength, <a href="http://en.wikipedia.org/wiki/Collimated_light" target="_blank">collimated</a> (such as from a laser), and experiences very minimal refraction, reflection, or scattering within the material itself, then it is appropriate to model the light intensity via the <em><a href="http://en.wikipedia.org/wiki/Beer%E2%80%93Lambert_law" target="_blank">Beer-Lambert law</a></em>. This law can be written in differential form for the light intensity <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAARBAMAAADwJOuSAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAACdQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////IitojAAAAAt0Uk5TAIhEZjOZ7t2qIrs+5gARAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAAAeAAAAHgAnfVaYAAAAEFJREFUCNdjYMACGAUFFSAsbQGokLUDlBEGU1QBpTk3QxnMO6EM1gIogz0AyphtADNmApQRDjOmFGqK1HZJFDcAANydB2Hq1r1gAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTExLTIyVDAwOjMyOjIxKzAxOjAw49qq5QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0xMS0yMlQwMDozMjoyMSswMTowMJKHElkAAAAgdEVYdHBzOkhpUmVzQm91bmRpbmdCb3gAOXgxMCszMDErNjM5SdysWQAAACd0RVh0cHM6TGV2ZWwAQWRvYmVGb250LTEuMDogQ01NSTEyIDAwMy4wMDIKMReWuwAAAEl0RVh0cHM6U3BvdENvbG9yLTAAL2Rldi9zaG0vemYyLWNhY2hlL2RkNzUzNjc5NGI2M2JmOTBlY2NmZDM3ZjliMTQ3ZDdmLmR2aSAtb59tOSAAAABFdEVYdHBzOlNwb3RDb2xvci0xAC9kZXYvc2htL3pmMi1jYWNoZS9kZDc1MzY3OTRiNjNiZjkwZWNjZmQzN2Y5YjE0N2Q3Zi5wc1z6KmYAAAAASUVORK5CYII=" /> as:</p>
<div class="latex">\frac{\partial I }{\partial z} = \alpha(T) I</div>
<p>where <em>z</em> is the coordinate along the beam direction and <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAXCAMAAACoJTZjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TAGYzdxFEiJmqVSK7zN3uicnkfwAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAD4SURBVDjLvZPZEsMgCEVFxS1G/v9vKyQuabUzfSkPJkMOeFmi1F8N9LvH2C2Mph7WDQNl/Q62QbIFtCqSq8G+oug2tEc+rxBK9UxMHmmdOvOZQEJOUcbhca0F5E6QsoogKGnLlNBwLWIhdq8mGMiB3Z1rz3xNWr/m7r1lt3JMy1yYwCJqaQCX7Ntc64qXwiwhD2Gii1/R5XqhyJcN+iG700iXVJIeD/ohu9O60fI4e5UP2cq3i84oTay0nTv4kK2Otmo6RATgPapXG3cPKdPppu2YpqMlUPMAU16OeDP5e6s+vOutUiksnHq3sQrg0+f3P89Pf9o3ewHYLgWPq9vBGgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMlQwMDozMjozMiswMTowMB6YsOYAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjJUMDA6MzI6MzIrMDE6MDBvxQhaAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADI3eDE0KzI5Mis2MzZ88/A0AAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvZTFjNTA2ZTQ3YzFiMjQyZTg0ZGY4MTRlM2E1NjkxYTEuZHZpIC1vC9LUqwAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlL2UxYzUwNmU0N2MxYjI0MmU4NGRmODE0ZTNhNTY5MWExLnBz5p5EMwAAAABJRU5ErkJggg==" /> is the temperature-dependent absorption coefficient of the material. Because this temperature can vary in space and time, we must also solve the governing partial differential equation for temperature distribution within the material:</p>
<div class="latex">\rho C_p \frac{\partial T }{\partial t}-\nabla \cdot (k \nabla T)= Q = \alpha(T) I</div>
<p>where the heat source term, <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAWCAMAAAAcqPc3AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TAESId5kRqjPuIsxmu1XdGAGeTwAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAACISURBVCjPnZBLDgQhCAURxT9y/9u2ZqYbtV1Mhg2kAi+kAP4tgxbR0UbJ42ghphXn8hlcXTF+J5b5AOOda4QVJ7nXO0flTo+LGOWtnVYAxOvK/I9mLjHQ3DP5CYPL/XHbjzAvHiiaxJAM+k1PqMjAw8XuLRQ7gqgcRGegmt48iMwSJnv1iH+qCzkHAysNh6MJAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTExLTIyVDAwOjEzOjI1KzAxOjAwoDtcCQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0xMS0yMlQwMDoxMzoyNSswMTowMNFm5LUAAAAhdEVYdHBzOkhpUmVzQm91bmRpbmdCb3gAMTR4MTMrMjk5KzYzNqUWEtIAAAAndEVYdHBzOkxldmVsAEFkb2JlRm9udC0xLjA6IENNTUkxMiAwMDMuMDAyCjEXlrsAAABJdEVYdHBzOlNwb3RDb2xvci0wAC9kZXYvc2htL3pmMi1jYWNoZS9mMDk1NjRjOWNhNTY4NTBkNGNkNmIzMzE5ZTU0MWFlZS5kdmkgLW+KkpqeAAAARXRFWHRwczpTcG90Q29sb3ItMQAvZGV2L3NobS96ZjItY2FjaGUvZjA5NTY0YzljYTU2ODUwZDRjZDZiMzMxOWU1NDFhZWUucHONCvPcAAAAAElFTkSuQmCC" />, equals the absorbed light. These two equations present a bidirectionally coupled multiphysics problem that is well suited for modeling within the core architecture of COMSOL Multiphysics. Let&#8217;s find out how&#8230;</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/04/modeling-laser-material-interactions-with-beer-lambert-law.png" title="" alt="A model of laser material interactions using the Beer-Lambert law." width="727" height="428" class="alignnone size-full wp-image-73811" /></p>
<h3>Implementation in COMSOL Multiphysics</h3>
<p>We will consider the problem shown above, which depicts a solid cylinder of material (20 mm in diameter and 25 mm in length) with a laser incident on the top. To reduce the model size, we will exploit symmetry and consider only one quarter of the entire cylinder. We will also partition the domain up into two volumes. These volumes will represent the same material, but we will only solve the Beer-Lambert law on the inside domain &#8212; the only region that the beam is heating up.</p>
<p>To implement the Beer-Lambert law, we will begin by adding the <em>General Form PDE</em> interface with the <em>Dependent Variables</em> and <em>Units</em> settings, as shown in the figure below.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/04/implementing-beer-lambert-law-with-dependent-variables-and-units.png" title="" alt="Screenshot showing how to implement the Beer-Lambert law by setting dependent variables and units." width="611" height="547" class="alignnone size-full wp-image-73821" /><br />
<em>Settings for the implementing the Beer-Lambert law. Note the Units settings.</em></p>
<p>Next, the equation itself is implemented via the <em>General Form PDE</em> interface, as illustrated in the following screenshot. Aside from the source term, <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAWBAMAAADURmpxAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADBQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////L2OGaQAAAA50Uk5TADOIZhHuqrvdRCKZVXcfEaJeAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAAAeAAAAHgAnfVaYAAAAFFJREFUCNdjYMAFhJShDJaQdCiLuWEWlMWUAFPGrgCT1Ns0AcqUc4DJmsKNU4eziuCsGBiD6xWMxRMAYzEVwK24AGWsYl0AZUVLwySVt+D0AQBhvgrLK4ta9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMVQyMzoxNDo1MiswMTowMPjpbHYAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjFUMjM6MTQ6NTIrMDE6MDCJtNTKAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADEweDEzKzMwMCs2MzYqeBGgAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvOGZhMTRjZGQ3NTRmOTFjYzY1NTRjOWU3MTkyOWNjZTcuZHZpIC1vWym2MAAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlLzhmYTE0Y2RkNzU0ZjkxY2M2NTU0YzllNzE5MjljY2U3LnBzI+PLYwAAAABJRU5ErkJggg==" />, all terms within the equation are set to zero; thus, the equation being solved is <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAWCAMAAAC4wk/kAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TADOIZiIR7qq7VUSZ3cx3LYboswAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAC3SURBVDjLxZHbEoMgDERDCNco/P/fdtBOWW0L+tLugzOuOZJdiP4gw2xnI3IynHchDpHEOekRswtlGTGytLPWg8dhsptye64JvcgTyG8DUWE5rsp5CNXtc8Tcpjp4yV3m6eUdYoSsx3yoE1Rxblx3h5Y7PUhNb5k8Vlk+rEd1by/gf/BisYhXpWG/p9LHEvbwJVRLIx5KnvbQllYn0YARyxwiKbafI0JeLkAHeTV6lyG26m5DP9ED3iYEmmKTUvsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMTEtMjJUMDM6Mzk6NDArMDE6MDDG6D/vAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTExLTIyVDAzOjM5OjQwKzAxOjAwt7WHUwAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAAzMXgxMysyODkrNjM2lrUDLAAAACd0RVh0cHM6TGV2ZWwAQWRvYmVGb250LTEuMDogQ01NSTEyIDAwMy4wMDIKMReWuwAAAEl0RVh0cHM6U3BvdENvbG9yLTAAL2Rldi9zaG0vemYyLWNhY2hlLzkwMzBjOWZkZDEzOTBkM2VkOWYxYTU1YjE2MTFhYTc0LmR2aSAtb/zCcDIAAABFdEVYdHBzOlNwb3RDb2xvci0xAC9kZXYvc2htL3pmMi1jYWNoZS85MDMwYzlmZGQxMzkwZDNlZDlmMWE1NWIxNjExYWE3NC5wc0U5xDIAAAAASUVORK5CYII=" />. The source term is set to <strong>Iz-(50[1/m]*(1+(T-300[K])/40[K]))*I</strong>, where the partial derivative of light intensity with respect to the <em>z</em>-direction is <strong>Iz</strong>, and the absorption coefficient is <strong>(50[1/m]*(1+(T-300[K])/40[K]))</strong>, which introduces a temperature dependency for illustrative purposes. This one line implements the Beer-Lambert law for a material with a temperature-dependent absorption coefficient, assuming that we will also solve for the temperature field, <strong>T</strong>, in our model.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/04/using-general-form-pde-interface-for-beer-lambert-simulation.png" title="" alt="Image showing how to set the General Form PDE interface for a simulation." width="555" height="606" class="alignnone size-full wp-image-73831" /><br />
<em>Implementation of the Beer-Lambert law with the</em> General Form PDE <em>interface.</em></p>
<p>Since this equation is linear and stationary, the <em>Initial Values</em> do not affect the solution for the intensity variable. The <em>Zero Flux</em> boundary condition is the natural boundary condition and does not impose a constraint or loading term. It is appropriate on most faces, with the exception of the illuminated face. We will assume that the incident laser light intensity follows a Gaussian distribution with respect to distance from the origin. At the origin, and immediately above the material, the incident intensity is 3 W/mm<sup>2</sup>. Some of the laser light will be reflected at the dielectric interface, so the intensity of light at the surface of the material is reduced to 0.95 of the incident intensity. This condition is implemented with a <em>Dirichlet Boundary Condition</em>. At the face opposite to the incident face, the default Zero Flux boundary condition can be physically interpreted as meaning that any light reaching that boundary will leave the domain.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/04/setting-the-dirichlet-boundary-condition-for-incident-light-intensity.png" title="" alt="Screenshot of setting the Dirichlet boundary condition for incident light intensity in a simulation." width="614" height="401" class="alignnone size-full wp-image-73841" /><br />
<em>The Dirichlet Boundary Condition sets the incident light intensity within the material.</em></p>
<p>With these settings described above, the problem of temperature-dependent light absorption governed by the Beer-Lambert law has been implemented. It is, of course, also necessary to solve for the temperature variation in the material over time. We will consider an arbitrary material with a thermal conductivity of 2 W/m/K, a density of 2000 kg/m<sup>3</sup>, and a specific heat of 1000 J/kg/K that is initially at 300 K with a volumetric heat source.</p>
<p>The heat source itself is simply the absorption coefficient times the intensity, or equivalently, the derivative of the intensity with respect to the propagation direction, which can be entered as shown below.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/04/setting-the-heat-source-term-as-absorbed-light.png" title="" alt="How to set the heat source term as absorbed light in COMSOL Multiphysics." width="495" height="522" class="alignnone size-full wp-image-73851" /><br />
<em>The heat source term is the absorbed light.</em></p>
<p>Most other boundaries can be left at the default <em>Thermal Insulation</em>, which will also be appropriate for implementing the symmetry of the temperature field. However, at the illuminated boundary, the temperature will rise significantly and radiative heat loss can occur. This can be modeled with the <em>Diffuse Surface</em> boundary condition, which takes the ambient temperature of the surroundings and the surface emissivity as inputs.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/04/modeling-thermal-radiation-with-diffuse-surface-boundary-condition.png" title="" alt="Image showing how to model thermal radiation by setting a diffuse surface boundary condition." width="493" height="628" class="alignnone size-full wp-image-73861" /><br />
<em>Thermal radiation from the top face to the surroundings is modeled with the Diffuse Surface boundary condition.</em></p>
<p>It is worth noting that using the Diffuse Surface boundary condition implies that the object radiates as a gray body. However, the gray body assumption would imply that this material is opaque. So how can we reconcile this with the fact that we are using the Beer-Lambert law, which is appropriate for semitransparent materials?</p>
<p>We can resolve this apparent discrepancy by noting that the material absorptivity is highly wavelength-dependent. At the wavelength of incident laser light that we are considering in this example, the penetration depth is large. However, when the part heats up, it will re-radiate primarily in the long-infrared regime. At long-infrared wavelengths, we can assume that the penetration depth is very small, and thus the assumption that the material bulk is opaque for emitted radiation is valid.</p>
<p>It is possible to solve this model either for the steady-state solution or for the transient response. The figure below shows the temperature and light intensity in the material over time, as well as the finite element mesh that is used. Although it is not necessary to use a swept mesh in the absorption direction, applying this feature provides a smooth solution for the light intensity with relatively fewer elements than a tetrahedral mesh. The plot of light intensity and temperature with respect to depth at the centerline illustrates the effect of the varying absorption coefficient due to the rise in temperature.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/04/mesh-and-light-intensity-in-beer-lambert-model.png" title="" alt="Schematic of mesh and light intensity in a Beer-Lambert simulation." width="750" height="344" class="alignnone size-full wp-image-73881" /><br />
<em>Plot of the mesh (on the far left) and the light intensity and temperature at different times.</em></p>
<p><img src="https://cdn.comsol.com/wordpress/2015/04/light-intensity-and-temperature-plotted-over-time.png" title="" alt="Plotting the light intensity and temperature as a function of depth." width="658" height="749" class="alignnone size-full wp-image-73891" /><br />
<em>Light intensity and temperature as a function of depth along the centerline over time.</em></p>
<div class="flex-center">
<a href="/model/modeling-of-material-heating-via-the-beer-lambert-law-46701" class="btn-solid btn-md btn-red">Get the Beer-Lambert Law Tutorial</a>
</div>
<h3>Summary and Further Refinements</h3>
<p>Here, we have highlighted how the <em>General Form PDE</em> interface, available in the core <a href="http://www.comsol.com/comsol-multiphysics">COMSOL Multiphysics</a> package, can be used for implementing the Beer-Lambert law to model the heating of a semitransparent medium with temperature-dependent absorptivity. This approach is appropriate if the incident light is collimated and at a wavelength where the material is semitransparent.</p>
<p>Although this approach has been presented in the context of laser heating, the incident light needs only to be collimated for this approach to be valid. The light does not need to be coherent nor single wavelength. A wide spectrum source can be broken down into a sum of several wavelength bands over which the material absorption coefficient is roughly constant, with each solved using a separate <em>General Form PDE</em> interface. </p>
<p>In the approach presented here, the material itself is assumed to be completely opaque to ambient thermal radiation. It is, however, possible to model thermal re-radiation within the material using the <em>Radiation in Participating Media</em> physics interface available within the <a href="http://www.comsol.com/heat-transfer-module">Heat Transfer Module</a>.</p>
<p>The Beer-Lambert law does assume that the incident laser light is perfectly collimated and propagates in a single direction. If you are instead modeling a focused laser beam with gradual variations in the intensity along the optical path then the <em>Beam Envelopes</em> interface in the <a href="http://www.comsol.com/wave-optics-module">Wave Optics Module</a> is more appropriate.</p>
<p>In future blog posts, we will introduce these as well as alternate approaches for modeling laser-material interactions. Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/modeling-laser-material-interactions-with-the-beer-lambert-law/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Obtaining Material Data for Structural Mechanics from Measurements</title>
		<link>https://www.comsol.no/blogs/obtaining-material-data-for-structural-mechanics-from-measurements/</link>
		<comments>https://www.comsol.no/blogs/obtaining-material-data-for-structural-mechanics-from-measurements/#comments</comments>
		<pubDate>Mon, 23 Feb 2015 09:02:48 +0000</pubDate>
		<dc:creator><![CDATA[Henrik Sönnerlind]]></dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Mechanical]]></category>
		<category><![CDATA[Structural Mechanics & Thermal Stress]]></category>
		<category><![CDATA[Structural Materials series]]></category>
		<category><![CDATA[Structural Mechanics Module]]></category>
		<category><![CDATA[Technical Content]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs/?p=64521</guid>
		<description><![CDATA[We often get requests of the type &#8220;I would like to just enter my measured stress-strain curve directly into COMSOL Multiphysics&#8221;. In this new blog series, we will take a detailed look at how you can process and interpret material data from tests. We will also explain why it is not a good idea to just enter a simple stress-strain curve as input. Different Material Models All material models are mathematical approximations of a true physical behavior. Material models can, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>We often get requests of the type &#8220;I would like to just enter my measured stress-strain curve directly into COMSOL Multiphysics&#8221;. In this new blog series, we will take a detailed look at how you can process and interpret material data from tests. We will also explain why it is not a good idea to just enter a simple stress-strain curve as input.</p>
<p><span id="more-64521"></span></p>
<h3>Different Material Models</h3>
<p>All material models are mathematical approximations of a true physical behavior. Material models can, however, not always be derived from physical principles, like mass conservation or equations of equilibrium. They are by nature phenomenological and based on measurements. The laws of physics will, however, enforce limits on the mathematical structure of material models and the possible values of material properties.</p>
<p>It is well known, even from everyday life, that different materials exhibit completely different behavior. A material can be very brittle, like glass, or very elastic, like rubber. Choosing a material model is not only determined by the material as such, but also by the operating conditions. If you immerse a piece of rubber into liquid nitrogen, it will become as brittle as glass &#8212; a <a href="https://www.youtube.com/watch?v=gAFzMor5aBQ" target="_blank">popular educational experiment</a>. Also, if you heat up glass, it will start to creep and show viscoelastic behavior.</p>
<p>When analyzing structural mechanics behavior in COMSOL Multiphysics, you can choose between about 50 built-in material models, many of them featuring several options for their settings. You can also set up and define your own material models, or combine several of the material models to, for example, describe a material exhibiting both creep and plasticity at the same time.</p>
<p>Some of the available classes of materials are:</p>
<ul>
<li>Linear elastic</li>
<li>Hyperelastic</li>
<li>Nonlinear elastic</li>
<li>Plasticity</li>
<li>Creep</li>
<li>Concrete</li>
</ul>
<p>Without going into details about how you should actually come to the correct decision about an appropriate material model, here are some questions you should ask yourself before you start modeling:</p>
<ul>
<li>How large are the stress and strain ranges?</li>
<li>Will the loading speed be important?</li>
<li>What is the operating temperature and will it be constant?</li>
<li>Is there a predefined material model targeted specifically at my material, such as concrete or soil plasticity?</li>
<li>Is the load constant, monotonously increasing, or cyclic?</li>
<li>Is the stress state predominantly uniaxial or is it fully three-dimensional?</li>
</ul>
<p>Based on these considerations, you can then make a choice of a suitable material model. Determining the correct parameters to use in this material model will then be more or less difficult.</p>
<p>On one end of the spectrum, there are common materials (such as steel at room temperature) where many engineers know the material data by heart (E = 210 GPa, <em>ν</em> = 0.3, <em>ρ</em> = 7850 kg/m<sup>3</sup>) and where data is easily found in the literature or through a simple web search.</p>
<p>On the other end of the spectrum, finding the high temperature creep data for a cast iron to be used in an exhaust manifold can be a major project in itself. Many tests at different load levels and at different temperatures are required. A complete test program for this may take half a year and have a price tag of several hundred thousand dollars.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/02/Tensile-testing-equipment.jpg" title="" alt="A photo of tensile testing equipment." width="400" height="611" class="alignnone size-full wp-image-64561" /><br />
<em>Tensile testing equipment. &#8220;Inspekt desk 50kN IMGP8563&#8243; by Smial. Original uploader was Smial at de.wikipedia &#8212; Transferred from de.wikipedia; transferred to Commons by User: Smial using CommonsHelper. (Original text: eigenes Foto). Licensed under CC BY-SA 2.0 de via <a href="http://commons.wikimedia.org/wiki/File:Inspekt_desk_50kN_IMGP8563.jpg#mediaviewer/File:Inspekt_desk_50kN_IMGP8563.jpg" target="_blank">Wikimedia Commons</a>.</em></p>
<h3>Common Types of Tests</h3>
<p>Before starting your simulation with COMSOL Multiphysics, it is not enough to import the geometry of the specimen, select the material model, and apply the loads and other boundary conditions; you should also provide the parameters for the chosen material model in the operating stress-strain and temperature range. These parameters are typically obtained from one or more tests.</p>
<h4>Uniaxial Tension</h4>
<p>The most fundamental test is the <a href="http://en.wikipedia.org/wiki/Tensile_testing" target="_blank"><em>uniaxial tensile test</em></a>. This is also what most engineers in daily life refer to when they state that they have a &#8220;Stress-Strain curve.&#8221; If you look at the list of questions above, it is evident that even this seemingly simple test can leave many loose ends:</p>
<ul>
<li>A material may exhibit time dependence even at constant loads, giving creep or viscoelastic effects. Many tests, often at different temperature and stress levels, are needed to give reliable data.</li>
<li>Material parameters obtained from an ordinary tensile test at low speed may not be representative of the material behavior at high strain rates. A crash analysis might show strain rates as high as 10 s<sup>-1</sup>, while conventional uniaxial testing machines can use strain rates as low as 10<sup>-3</sup> s<sup>-1</sup>.</li>
<li>Is the material isotropic or would tests in several directions be required?</li>
<li>If you only have a tension test, what would happen in compression? With a single curve, you cannot really tell.</li>
<li>A tensile test will supply stress versus strain in the tested direction, but it will not always contain data about the deformations in the transverse direction. Without that data, you have no information at all about the cross-coupling between the directions in the 3D case.</li>
<li>When curve fitting experimental measurements, perhaps not all data should be given equal weight. It may so be that the response in a certain strain range has a larger impact on your simulation results.</li>
</ul>
<h4>Uniaxial Compression</h4>
<p>Some materials, like concrete, have little or no capacity to carry loads in tension. Here, the <em>uniaxial compression test</em> is the most fundamental test. It has many properties in common with the tensile test.</p>
<p>Other materials, like steel and rubber, can also be tested in compression. It is actually a good idea to do so, as we will demonstrate later in this blog post.</p>
<p>When using only uniaxial testing (whether it is in tension, compression, or both), you can however not achieve the full picture of the properties of a given material. You will need to combine it with some other assumptions like isotropy or incompressibility. For many materials, such assumptions are well justified by experience, though.</p>
<p>We have illustrated how the range of a test will affect your conception of the material behavior in the animation below.</p>
<div class="wistia_responsive_padding" style="padding:75.0% 0 0 0;position:relative;">
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
<div id="wistia_rednuvr291" class="wistia_embed" style="width:100%;height:100%;">
<div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/rednuvr291/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" onload="this.parentNode.style.opacity=1;" title="" /></div>
</div>
</div>
</div>
<p><script charset="ISO-8859-1" src="https://fast.wistia.com/assets/external/E-v1.js"></script><script>wistiaEmbed = Wistia.embed("rednuvr291", {  videoFoam: "true",  playerPreference: "html5"});</script></p>
<ul>
<li>If you just do the onloading part, it is not possible to discriminate between elastic and plastic behavior.</li>
<li>By unloading, you can distinguish plastic from elastic behavior, but until the specimen is in a state of significant compression, it is not possible to determine whether an isotropic or a kinematic hardening model would give the best representation.</li>
</ul>
<h4>Biaxial Tension</h4>
<p>It is significantly more difficult to design testing equipment that can create a homogenous biaxial stress state. <a href="http://en.wikipedia.org/wiki/Biaxial_tensile_test" target="_blank"><em>Biaxial testing</em></a> is often used for materials that are available only in thin sheets, like fabrics, for instance. By controlling the ratio between the loads in two perpendicular directions, it is possible to extract much more information than from a uniaxial test. </p>
<h4>Triaxial Compression</h4>
<p>For soils, which generally need to be confined, <em>triaxial compression</em> is a common test. Triaxial compression tests could in principle be applied to a block of any material, but the testing equipment is difficult to design. The low compressibility of most solid materials also makes triaxial testing less attractive, since the measured displacements will be small when the material is compressed in all directions.</p>
<p>The <a href="http://www.comsol.com/model/triaxial-test-9702">Triaxial Test model</a> shows a finite element model of a triaxial compression test. </p>
<h4>Torsion</h4>
<p>The <em>torsion test</em>, where a cylindrical test specimen is twisted, is a rather simple test that generates a non-uniaxial stress state. The stress state is, however, not homogenous through the rod. Therefore, some extra processing is needed to translate the moment versus angle results to stress-strain results.</p>
<h3>Testing Hyperelastic Materials</h3>
<p>In an upcoming blog post in this series, we will make an in-depth demonstration of how to fit measured data to a number of different hyperelastic material models. In the example here, we will assume that you have been able to fit your data to the tests. The raw data consists of two measurements: one in uniaxial tension and another in equibiaxial tension, as shown below.</p>
<p>The nominal stress (force divided by original area) is plotted against stretch (current length divided by original length).</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/02/Measured-stress-strain-curves.png" title="" alt="A plot depicting measured stress-strain curves." width="640" height="480" class="alignnone size-full wp-image-64571" /><br />
<em>Measured stress-strain curves by <a href="http://dx.doi.org/10.1039/TF9444000059" target="_blank">Treloar</a>.</em></p>
<p>Since the data covers a wide range of stretches, the experimental results are clearly nonlinear. The simplest hyperelastic models with one or two parameters will probably not be sufficient to fit the experimental data. The <a href="http://en.wikipedia.org/wiki/Ogden_%28hyperelastic_model%29" target="_blank">Ogden model</a> with three terms is a popular model for rubber, and it is the model we used here.</p>
<p>A least squares fit will give the results below when assigning equal weights to both data sets. As we can see in the graph, it is possible to fit both experiments very well with a single set of material parameters.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/02/Fitted-material-parameters1.png" title="" alt="A graph showing the fitted material parameters using the Ogden model." width="640" height="480" class="alignnone size-full wp-image-64931" /><br />
<em>Fitted material parameters using a three terms Ogden model.</em></p>
<p>But what if the biaxial test had not been available? Fitting only the uniaxial data will give a different set of material parameters, which will of course fit that set of experimental data even more closely, but it would deviate from the biaxial results. This is shown below.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/02/Uniaxial-and-biaxial-tension-results.png" title="" alt="Uniaxial and biaxial tension results." width="640" height="480" class="alignnone size-full wp-image-64591" /><br />
<em>Analytical results for uniaxial and biaxial tension when only the uniaxial data was used to fit the model parameters.</em></p>
<p>Clearly, the prediction for a equibiaxial stress state will differ between the two sets of parameters. As we can see, the error in stress in the biaxial curve is more than 20% at some stretch levels.</p>
<p>What about other stress states? Two stress states that can be simulated in a simple finite element model are uniaxial compression and pure torsion. The uniaxial stress-strain curve over a wide range of stretches is shown below. The results on the tensile side are not as sensitive to the data set used for obtaining the material parameters as the compressive side is. This is not surprising as tensile data is used for parameter fitting in both cases, whereas neither of the experiments contain any information about the compressive behavior.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/02/Compression-to-tension-uniaxial-response.png" title="" alt="The uniaxial stress-strain curve over a wide range of stretches." width="640" height="480" class="alignnone size-full wp-image-64601" /><br />
<em>Uniaxial response ranging from compression to tension. The scale on the </em>x<em>-axis is logarithmic.</em></p>
<p>Note that operating conditions of rubber parts, such as seals, are often under predominantly compressive states. If the data sets used for parameter fitting contain only tension data, this may be a source of inaccuracy when modeling multiaxial stress states.</p>
<p>Finally, let&#8217;s have a look at a simulation where a circular bar is twisted. The same type of discrepancies between the results from two sets of material parameters as above can be seen below.</p>
<p><img src="https://cdn.comsol.com/wordpress/2015/02/Computed-torque.png" title="" alt="A plot highlighting computed torque." width="640" height="480" class="alignnone size-full wp-image-64611" /><br />
<em>Computed torque as function of the twist angle.</em></p>
<p>Finally, it should be noted that many hyperelastic models are only conditionally stable. This means that even though the estimated material parameters are perfectly valid for a certain strain range, a unique and continuous stress-strain relation may not even exist for other strain combinations. We often come across such problems in support cases. This is unfortunately rather difficult to detect a <em>priori</em>, since it would require a full search of all possible strain combinations.</p>
<h3>Concluding Remarks and Next Up</h3>
<p>Measured data must be processed and analyzed before being used as input for simulations. For material models other than the simpler linear elastic model, it is a good idea to make small examples with a unit cube to assess the behavior under different loading states before using the material model in a large-scale simulation.</p>
<p>So the answer to the question: &#8220;I would like to just enter my measured stress-strain curve directly into COMSOL Multiphysics&#8221; is that such an approach is <em>not</em> recommended. That would make the software a black box where the user really must take a number of active decisions in order to obtain meaningful results.</p>
<p>Up next in our Structural Materials series: We will discuss nonlinear elasticity and plasticity. </p>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/obtaining-material-data-for-structural-mechanics-from-measurements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing Nonlinear Elastic Materials</title>
		<link>https://www.comsol.no/blogs/introducing-nonlinear-elastic-materials/</link>
		<comments>https://www.comsol.no/blogs/introducing-nonlinear-elastic-materials/#comments</comments>
		<pubDate>Fri, 09 Jan 2015 09:02:48 +0000</pubDate>
		<dc:creator><![CDATA[Ed Gonzalez]]></dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Geomechanics]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Mechanical]]></category>
		<category><![CDATA[Structural Mechanics & Thermal Stress]]></category>
		<category><![CDATA[Geomechanics Module]]></category>
		<category><![CDATA[Nonlinear Structural Materials Module]]></category>
		<category><![CDATA[Structural Mechanics Module]]></category>
		<category><![CDATA[Technical Content]]></category>

		<guid isPermaLink="false">http://com.staging.comsol.com/blogs/?p=54691</guid>
		<description><![CDATA[Nonlinear elastic materials present nonlinear stress-strain relationships even at infinitesimal strains &#8212; as opposed to hyperelastic materials, where stress-strain curves become significantly nonlinear at moderate to large strains. Important materials of this class are Ramberg-Osgood for modeling metals and other ductile materials and nonlinear soils models, such as the Duncan-Chang model. Power Law The nonlinear stress-strain behavior in solids was already described 100 years ago by Paul Ludwik in his Elemente der Technologischen Mechanik. In that treatise, Ludwik described the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Nonlinear elastic materials present nonlinear stress-strain relationships even at infinitesimal strains &#8212; as opposed to hyperelastic materials, where stress-strain curves become significantly nonlinear at moderate to large strains. Important materials of this class are Ramberg-Osgood for modeling metals and other ductile materials and nonlinear soils models, such as the Duncan-Chang model.</p>
<p><span id="more-54691"></span></p>
<h3>Power Law</h3>
<p>The nonlinear stress-strain behavior in solids was already described 100 years ago by Paul Ludwik in his <em>Elemente der Technologischen Mechanik</em>. In that treatise, Ludwik described the nonlinear relation between shear stress <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAMBAMAAABLmSrqAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAACpQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////5u1vmAAAAA10Uk5TAESId2a7zCJVqu6ZM4ysydQAAAABYktHRACIBR1IAAAACXBIWXMAAAB4AAAAeACd9VpgAAAANklEQVQI12NgQAeMSkpKBkDaVSlJyYGBgd2AXQEkzM7A0gBRwFkAobmgGlqh9CYovQJKHwARAO9fBc56F5xBAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTExLTIyVDAwOjQ3OjEzKzAxOjAwNdhi6AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0xMS0yMlQwMDo0NzoxMyswMTowMESF2lQAAAAfdEVYdHBzOkhpUmVzQm91bmRpbmdCb3gAOHg3KzMwMSs2Mzlw+fz6AAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvYTZmMzE3YjI2OGFlODI1ZDk0ZjgzMmY5NzBhZjYwN2MuZHZpIC1v1X9onwAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlL2E2ZjMxN2IyNjhhZTgyNWQ5NGY4MzJmOTcwYWY2MDdjLnBzeERoUgAAAABJRU5ErkJggg==" /> and shear strain <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARBAMAAADJQ1rJAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAC1QTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////wISVsgAAAA50Uk5TAESqu1UzZt2Ime4iEXcTgvqoAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAAAeAAAAHgAnfVaYAAAAEhJREFUCNdjYMAKGJUdGFjBrPTOhQzZIAZ3D8MhhgQQi+MAA9tGAahKbgm4pmlwVg2cNQHG4E6AsXhhWhmYGDBZsXDWGVQnAQCi6AkoGRcQFwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMlQwMDowMzo0MSswMTowMFOVrl0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjJUMDA6MDM6NDErMDE6MDAiyBbhAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADEweDEwKzMwMCs2MzYT9S1lAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvYWU1MzlkZmNjOTk5YzI4ZTI1YTBmM2FlNjVjMWRlNzkuZHZpIC1v5aZziwAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlL2FlNTM5ZGZjYzk5OWMyOGUyNWEwZjNhZTY1YzFkZTc5LnBzYBJWtwAAAABJRU5ErkJggg==" /> observed in torsion tests with what is nowadays called <em>Ludwik&#8217;s Law</em>:</p>
<p style="float: right">(1)</p>
<div class="latex">\tau = \tau_0 + k\gamma^{1/n}</div>
<p>For <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAARCAMAAACo2Q8bAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TACKIuzN3zN1mqkRVmRHudaZxYgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAACGSURBVCjPzZHBDoQgDETH0rJaQf7/bwXZRQ5EIHtxDhBCHjNTgPdpmQbIzAFMYieRKPMPwkRgics4IvjQCmxS3tBb3EJ2RkgOrthQrRai0JB2K+ioqn/Newndj6oQk9zFlrP0ggFBc67fdV1fm0iuEnOtw8Fou9rv4h8BcsfhKBf2/ju5MZ1nmgMeSzpFAwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMlQwNDoyMToyMCswMTowMK+trwQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjJUMDQ6MjE6MjArMDE6MDDe8Be4AAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADMweDEwKzI5MCs2Mzlibt/DAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvNmQyNGUyYmM5N2M1ZTQyODNkZDhlMzQ2NzRhZmU3ZWEuZHZpIC1vyT4puQAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlLzZkMjRlMmJjOTdjNWU0MjgzZGQ4ZTM0Njc0YWZlN2VhLnBzDqyNvgAAAABJRU5ErkJggg==" />, the stress-strain curve is linear; for <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAARCAMAAACo2Q8bAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TABFEIneImcwz7rtV3WaqkiQrcAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAACiSURBVCjPzZFRE8QQDIQjFVJO8///7REtOnOj5637YBg+uwvA22RwWyQskfO8RJTTtK8YhXLYCC0gEvoITASck86RiIq4mhI+lAAOe+0ydt37RlEwMmhC12xo1A3xdYmAoksLT3Ku3Vo6bfL4fqkREIqd9f0LfgdLZX7eq51yrmt7rI+N4KRcLaNVcq40S8VhcKVD20drZsguqupqzPly/+kL7M4EAFCy3H8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMTEtMjFUMjM6MzQ6MjgrMDE6MDAOMIPgAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTExLTIxVDIzOjM0OjI4KzAxOjAwf207XAAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAAzMHgxMCsyOTArNjM5Ym7fwwAAACd0RVh0cHM6TGV2ZWwAQWRvYmVGb250LTEuMDogQ01NSTEyIDAwMy4wMDIKMReWuwAAAEl0RVh0cHM6U3BvdENvbG9yLTAAL2Rldi9zaG0vemYyLWNhY2hlL2MzMDMwODFmN2ExNmY2MDMxMTJiMDM3NWJkYzg0ODgzLmR2aSAtb1NchvEAAABFdEVYdHBzOlNwb3RDb2xvci0xAC9kZXYvc2htL3pmMi1jYWNoZS9jMzAzMDgxZjdhMTZmNjAzMTEyYjAzNzViZGM4NDg4My5wc54akakAAAAASUVORK5CYII=" />, the curve is a parabola; and for <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAAMCAMAAADib5XuAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TADOId7sRmWbdqkTuVcwir8ff4AAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAC8SURBVCjPxVLJFsMgCASEGHH7/7+tS1y6vKa3ziECAwNKAP4PJAI05XMDw2ykGmL4sFscTiquM1NQF3CmOav29MVHVgCd7QJCrs4xI7RjBG1VkugRuQ2hehEKmusZDXxDZ5P3nK4ukyKuTE4/1JdeEV7ruZomrtSP8/dDfKYnwYKsffyRu7/fuOUgXXC5SaVZ369fxt928o7U2LI3iVVAnExl154vGPlWD3gQcWgF/uS4Fity7eEO62eY1gNQeQTh5IgCjgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMVQyMzozNDoyOCswMTowMA4wg+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjFUMjM6MzQ6MjgrMDE6MDB/bTtcAAAAIHRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADM4eDcrMjg3KzYzObYJYA0AAAAndEVYdHBzOkxldmVsAEFkb2JlRm9udC0xLjA6IENNTUkxMiAwMDMuMDAyCjEXlrsAAABJdEVYdHBzOlNwb3RDb2xvci0wAC9kZXYvc2htL3pmMi1jYWNoZS9iMDRmNjVlNDA1OGNiZTE3ODNmMGJkYTc2MDFjNjNlYy5kdmkgLW8hU1DAAAAARXRFWHRwczpTcG90Q29sb3ItMQAvZGV2L3NobS96ZjItY2FjaGUvYjA0ZjY1ZTQwNThjYmUxNzgzZjBiZGE3NjAxYzYzZWMucHN9ELeQAAAAAElFTkSuQmCC" />, the curve represents a perfectly plastic material. Ludwik just described the behavior (<em>Fließkurve</em>) of what we now call a <em>pseudoplastic material</em>.</p>
<p>In version 5.0 of the COMSOL Multiphysics simulation software, beside Ludwik’s power-law, the Nonlinear Structural Materials Module includes different material models within the family of nonlinear elasticity:</p>
<ul>
<li>Ramberg-Osgood</li>
<li>Power Law</li>
<li>Uniaxial Data</li>
<li>Bilinear Elastic</li>
<li>User Defined</li>
</ul>
<p>In the Geomechanics Module, we have now included material models intended to represent nonlinear deformations in soils:</p>
<ul>
<li>Hyperbolic Law</li>
<li>Hardin-Drnevich</li>
<li>Duncan-Chang</li>
<li>Duncan-Selig</li>
</ul>
<h3>An Example with Uniaxial Data</h3>
<p>The main difference between a nonlinear elastic material and an elastoplastic material (either in metal or soil plasticity) is the reversibility of the deformations. While a nonlinear elastic solid would return to its original shape after a load-unload cycle, an elastoplastic solid would suffer from permanent deformations, and the stress-strain curve would present hysteretic behavior and ratcheting.</p>
<p>Let&#8217;s open the <a href="http://www.comsol.com/model/elastoplastic-analysis-of-plate-with-a-center-hole-244">Elastoplastic Analysis of a Plate with a Center Hole model</a>, available in the Nonlinear Structural Materials Model Library as <em>elastoplastic_plate</em>, and modify it to solve for one load-unload cycle. Let&#8217;s also add one of the new material models included in version 5.0, the <em>Uniaxial data</em> model, and use the stress_strain_curve already defined in the model.</p>
<p>Here&#8217;s a screenshot of what those selections look like:</p>
<p><img class="alignnone size-full wp-image-54771" title="" src="https://cdn.comsol.com/wordpress/2015/01/Uniaxial-data.png" alt="The Uniaxial data model." width="394" height="274" /></p>
<p>In our example, the stress_strain_curve represents the bilinear response of the axial stress as a function of axial strain, which can be recovered from Ludwik&#8217;s law when <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAARCAMAAACo2Q8bAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TACKIuzN3zN1mqkRVmRHudaZxYgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAACGSURBVCjPzZHBDoQgDETH0rJaQf7/bwXZRQ5EIHtxDhBCHjNTgPdpmQbIzAFMYieRKPMPwkRgics4IvjQCmxS3tBb3EJ2RkgOrthQrRai0JB2K+ioqn/Newndj6oQk9zFlrP0ggFBc67fdV1fm0iuEnOtw8Fou9rv4h8BcsfhKBf2/ju5MZ1nmgMeSzpFAwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0yMlQwNDoyMToyMCswMTowMK+trwQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMTEtMjJUMDQ6MjE6MjArMDE6MDDe8Be4AAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADMweDEwKzI5MCs2Mzlibt/DAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvNmQyNGUyYmM5N2M1ZTQyODNkZDhlMzQ2NzRhZmU3ZWEuZHZpIC1vyT4puQAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlLzZkMjRlMmJjOTdjNWU0MjgzZGQ4ZTM0Njc0YWZlN2VhLnBzDqyNvgAAAABJRU5ErkJggg==" />.</p>
<p><img class="alignnone size-full wp-image-54781" title="" src="https://cdn.comsol.com/wordpress/2015/01/Stress-strain-curve.png" alt="A plot depicting the stress-strain curve." width="886" height="702" /></p>
<p>We can compare the stress distribution after laterally loading the plate to a maximum value. The results are pretty much the same, but the main difference is observed after a full load-unload cycle.</p>
<p><img class="alignnone size-full wp-image-54791" title="" src="https://cdn.comsol.com/wordpress/2015/01/Stress-comparison.png" alt="Comparisons in stress distribution." width="900" height="801" /><br />
<em>Top: Elastoplastic material. Bottom: Uniaxial data model.</em></p>
<p>Let&#8217;s pick the point where we observed the highest stress and plot the <em>x</em>-direction stress component versus the corresponding strain. The green curve shows a nonlinear, yet elastic, relation between stress and strain (the stress path goes from <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAAARCAMAAACl670ZAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TACKZu3dmEd0ziFXMRO6qlgeEQQAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAEzSURBVEjH7ZXLdoQgDEBDkPAQh///2wE5U9FmmjBd2EWz8Bz1ekkgIMB//KUwaJe7c5iN4u7OYDJMMXenIAbReOe8ClP7fs99j4DjHaIKU/s+50yMyfALvo7F+sXFKGNqX53LpaLzwmAJsudTccNjUyIBn/KIqX2VXAMQhlkhbbleS2ZHADyOB+dr4XmTMLWvk47fzj8Jca2XXL6WIZ9jfbzmYG9jV0RM6+skyONehLC16Y7Hx7W1xtjsqzjfyo5ewtS+TsrcVRj26bZ829UCjxf78nkUML0vv+scQdinuyRg/2dpGLn1Q96MgOl9PRUgMytsOSyFgnjKtI1n+f/0iKl94BtCSLNChzkGm9hlPJ3kKWbkEz5hah+ER8px+UBIbVPyLXVeMXrXdxdM66uZhWnhE5HSEClTBHoVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTExLTIyVDA0OjIxOjIwKzAxOjAwr62vBAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0xMS0yMlQwNDoyMToyMCswMTowMN7wF7gAAAAidEVYdHBzOkhpUmVzQm91bmRpbmdCb3gAMTA2eDEwKzI1Mys2MznknzzCAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvYzRmMjM4NGM4MjkyZjU0N2Q0NDk2ODI2NDBhYTBlODguZHZpIC1vgkNliQAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlL2M0ZjIzODRjODI5MmY1NDdkNDQ5NjgyNjQwYWEwZTg4LnBzw2VtDgAAAABJRU5ErkJggg==" />). The blue curve portraits a hysteresis loop observed in elastoplastic materials with isotropic hardening (the stress path goes from <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIkAAAARCAMAAADez3/VAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TACKZu3eIZswR3VUzRO6qQZuRKgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAE7SURBVEjH7ZXJlsQgCEUVxeCQ8v//tqMZxBwqWqe7ds0u5ub5BCFK/cdvQoOx8zQa80Uv2X0A4/I9IzrrD2iDf7k3EX9yfgo7IodJcCoi8CeAKWyPlGkO5KERg5YTv3A5bx3iGNsF5WtyA8miTcyoIZW8vIVjyzojKdmK61ar4DoDLtv52wqtxVVOSgxo7eL8dqC0jrBnQQ7qCjYnUNLIqpr6WF7xBEuRXR5hp+BQT702MGJzXNPIqmqxi9WcqC/HQT/CDkEz1FPZYOC3pKbxbfNDe1GniYcR9izIwHsB97pszS/Oz8A/LPSqR9ghmERBDh5O6FIs2jZTDNIWvOvKhTXyvO+a80mwA6sYwbXkIGE0QcxmN4kCJpCN9APrQbAHNYSE/KdK5TLLPUddLehNp9+wB8EbqOLVR+oH38IL5jd1wCIAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMTEtMjJUMDQ6MjE6MjArMDE6MDCvra8EAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTExLTIyVDA0OjIxOjIwKzAxOjAw3vAXuAAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAA4MngxMCsyNjUrNjM5UCrDWgAAACd0RVh0cHM6TGV2ZWwAQWRvYmVGb250LTEuMDogQ01NSTEyIDAwMy4wMDIKMReWuwAAAEl0RVh0cHM6U3BvdENvbG9yLTAAL2Rldi9zaG0vemYyLWNhY2hlL2ZiNzBlZThlMmM3N2FlZjI2MGRhZWVlNzlkNWNiYjI1LmR2aSAtb431qRUAAABFdEVYdHBzOlNwb3RDb2xvci0xAC9kZXYvc2htL3pmMi1jYWNoZS9mYjcwZWU4ZTJjNzdhZWYyNjBkYWVlZTc5ZDVjYmIyNS5wcycgaaQAAAAASUVORK5CYII=" />).</p>
<p><img class="alignnone size-full wp-image-54801" title="" src="https://cdn.comsol.com/wordpress/2015/01/Hysteresis-plot.png" alt="A hysteresis plot." width="887" height="702" /></p>
<p>With the Uniaxial data model, you can also define your own <a href="http://en.wikipedia.org/wiki/Stress%E2%80%93strain_curve" target="_blank">stress-strain curve</a> obtained from experimental data, even if it is not symmetric in both tension and compression.</p>
<h3>Further Reading</h3>
<ul>
<li>P. Ludwik. <a href="http://link.springer.com/book/10.1007%2F978-3-662-40293-1" target="_blank"><em>Elemente der Technologischen Mechanik</em></a></li>
<li>&#8220;<a href="http://solidmechanics.org/Text/Chapter3_3/Chapter3_3.php" target="_blank">Hypoelasticity</a>&#8220;, Chapter 3.3 of <em>Applied Mechanics of Solids</em></li>
<li>Download the <a href="http://www.comsol.com/model/elastoplastic-analysis-of-plate-with-a-center-hole-244">Elastoplastic Analysis of a Plate with a Center Hole model</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://www.comsol.no/blogs/introducing-nonlinear-elastic-materials/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
