<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Jorge, 
<div class=""><br class="">
</div>
<div class="">The problem is that you are assigning a constant to a piece-wise defined function.</div>
<div class=""><br class="">
</div>
<div class="">You won’t get an error if you write:</div>
<div class="">areaUsed[] = SurfaceArea[]{Coils};</div>
<div class="">i.e., you use another function. </div>
<div class=""><br class="">
</div>
<div class="">Now for checking the actual value of your surface, you may use a post-processing or a ## followed by a number (you will see if when you call the function).</div>
<div class="">It won’t work with Printf. </div>
<div class=""><br class="">
</div>
<div class="">Best, </div>
<div class="">Ruth</div>
<div class=""><br class="">
<div class="">
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
—<br class="">
Prof. Ruth V. Sabariego<br class="">
KU Leuven  <br class="">
Dept. Electrical Engineering ESAT/Electa, EnergyVille<br class="">
<a href="http://www.esat.kuleuven.be/electa" class="">http://www.esat.kuleuven.be/electa</a></div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<a href="http://www.energyville.be" class="">http://www.energyville.be</a></div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Free software: <a href="http://gmsh.info" class="">http://gmsh.info</a> | <a href="http://getdp.info" class="">http://getdp.info</a> | <a href="http://onelab.info" class="">http://onelab.info</a><br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 15 Jan 2019, at 16:03, JORGE MIAJA HERNANDEZ <<a href="mailto:j.miaja@alumnos.upm.es" class="">j.miaja@alumnos.upm.es</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Dear GetDP users,<br class="">
<br class="">
I am having some trouble with the defined function SurfaceArea []{expression-cst-list}<br class="">
<br class="">
code line:<br class="">
jsz[ Coils ] = -numberCoils * Current / SurfaceArea[];<br class="">
<br class="">
works just fine,<br class="">
however, if I try to obtain the area of that same physical surface "Coils" by using the expression-cst-list field, an error showing "Unknown Constant: SurfaceArea" prompts at the loading of the file.<br class="">
<br class="">
the line I use here is:<br class="">
 areaUsed = SurfaceArea[]{Coils};<br class="">
<br class="">
I wish to printf this value in the terminal window for debug reasons but I dont find the way to get that value<br class="">
Is it not possible to  do this?<br class="">
<br class="">
-- <br class="">
JORGE MIAJA HERNANDEZ<br class="">
Universidad Politecnica de Madrid<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
getdp mailing list<br class="">
<a href="mailto:getdp@onelab.info" class="">getdp@onelab.info</a><br class="">
http://onelab.info/mailman/listinfo/getdp<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>