Unable to load saved date with triangle edge

27 views
Skip to first unread message

Qiusong Chen

unread,
May 27, 2020, 12:24:22 AM5/27/20
to DEVSIM TCAD
Hello Juan:
While load saved data to continue my work, devsim report that "Triangle edge data is not supported CoerciveSignX". But the "CoerciveSignX" is an element_solution. Can you gave me some hints?
Best regards,
QS.C

Juan Sanchez

unread,
May 27, 2020, 9:28:28 PM5/27/20
to Qiusong Chen, DEVSIM TCAD
Hi,

Thanks for your report.  Element models are stored on triangle edges in 2d and tetrahedron edges in 3d.  You are the first one to try and load an element solution, and you have found a bug.

I have fixed it here:

Please try it and let me know if it works correctly.

Regards,

Juan

--
You received this message because you are subscribed to the Google Groups "DEVSIM TCAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devsim+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/devsim/b2aa69f0-80dc-488c-b8e5-87634f6a6481%40googlegroups.com.

Qiusong Chen

unread,
May 27, 2020, 10:13:15 PM5/27/20
to DEVSIM TCAD
Hi,
Thanks for helping me to solve this issue. The updated package imports the triangle_model correctly but I found that the previously write devsim file didn't contain any parameters like "drain_bias" . So it's still can't load saved work to continue it.
Best regards,
QS.C


On Thursday, May 28, 2020 at 9:28:28 AM UTC+8, jsanchez wrote:
Hi,

Thanks for your report.  Element models are stored on triangle edges in 2d and tetrahedron edges in 3d.  You are the first one to try and load an element solution, and you have found a bug.

I have fixed it here:

Please try it and let me know if it works correctly.

Regards,

Juan

On Tue, May 26, 2020 at 11:24 PM Qiusong Chen <chenq...@gmail.com> wrote:
Hello Juan:
While load saved data to continue my work, devsim report that "Triangle edge data is not supported CoerciveSignX". But the "CoerciveSignX" is an element_solution. Can you gave me some hints?
Best regards,
QS.C

--
You received this message because you are subscribed to the Google Groups "DEVSIM TCAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dev...@googlegroups.com.

Juan Sanchez

unread,
May 27, 2020, 11:31:47 PM5/27/20
to DEVSIM TCAD
Hi,

Parameters are not saved in the devsim format. Currently, the ability
to save and restart a simulation for a file requires an additional
file to store parameter and circuit values.

Parameters can be iterated over using devsim.get_parameter_list:

https://devsim.net/CommandReference.html#devsim.get_parameter_list

That is what I do in the test for restarting simulations. At the
bottom of "testing/mos2d.py", the parameters are written to a file,
"mos_2d_params.py". This file is then imported in
"testing/mos2d_restart2.py" using.
import mos_2d_params

I do not recommend using "import" in general, because it is a security
risk. It should be possible however to use devsim.get_parameter_list
and devsim.get_parameter, to generate some kind of file to store your
data.

To get the drain bias from an existing file, you can load it and use:
https://devsim.net/CommandReference.html#devsim.get_node_model_values

to get the values of "Potential" and get the node indexes of the
"drain" contact using:

https://devsim.net/CommandReference.html#devsim.get_element_node_list

which will give you a list of tuples containing the node indexes of
each edge on the contact.

Unfortunately, you will not have any of the other physical parameters.
If you are using extended precision, you will also be missing some
digits of precision. This is since the devsim writer and reader only
writes out 15 digits of precision (64 bit double precision). However
the data will be a good initial guess for a final 128 bit floating
point solution.

Regards,

Juan
> it, send an email to dev...@googlegroups.com <javascript:>.
> <https://groups.google.com/d/msgid/devsim/b2aa69f0-80dc-488c-b8e5-87634f6a6481%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "DEVSIM TCAD" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to devsim+un...@googlegroups.com
> <mailto:devsim+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/devsim/09ebbb05-7b17-4576-a1a3-1420a89813d6%40googlegroups.com
> <https://groups.google.com/d/msgid/devsim/09ebbb05-7b17-4576-a1a3-1420a89813d6%40googlegroups.com?utm_medium=email&utm_source=footer>.

Qiusong Chen

unread,
May 28, 2020, 10:23:57 AM5/28/20
to DEVSIM TCAD
Hi Juan:
Thank you very much for providing such a detailed explanation. Although it's sophisticated, I think I can write a function to resume the simulation based on your instruction. 
Best regards,
QS.C
Reply all
Reply to author
Forward
0 new messages