[Getdp] Trouble calling function SurfaceArea[]{}

Ruth Vazquez Sabariego ruth.sabariego at kuleuven.be
Wed Jan 16 10:26:11 CET 2019

Dear Jorge,

The problem is that you are assigning a constant to a piece-wise defined function.

You won’t get an error if you write:
areaUsed[] = SurfaceArea[]{Coils};
i.e., you use another function.

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).
It won’t work with Printf.


Prof. Ruth V. Sabariego
KU Leuven
Dept. Electrical Engineering ESAT/Electa, EnergyVille

Free software: http://gmsh.info | http://getdp.info | http://onelab.info

On 15 Jan 2019, at 16:03, JORGE MIAJA HERNANDEZ <j.miaja at alumnos.upm.es<mailto:j.miaja at alumnos.upm.es>> wrote:

Dear GetDP users,

I am having some trouble with the defined function SurfaceArea []{expression-cst-list}

code line:
jsz[ Coils ] = -numberCoils * Current / SurfaceArea[];

works just fine,
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.

the line I use here is:
 areaUsed = SurfaceArea[]{Coils};

I wish to printf this value in the terminal window for debug reasons but I dont find the way to get that value
Is it not possible to  do this?

Universidad Politecnica de Madrid

getdp mailing list
getdp at onelab.info<mailto:getdp at onelab.info>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/getdp/attachments/20190116/aa906ad4/attachment.html>

More information about the getdp mailing list