# Plasmon Resonance

#1

Hi
I am trying to obtain the plasmon resonance of Silver sphere coated with a Glass hollow sphere(core-shell structure). The problem is the script file/simulation setup that I am using is completing ignoring the glass hollow sphere and taking only the radius of the silver sphere into account.
The warning message says:
" line 14: in get, more than one object had the requested property and the values were different, the value from the first selected object with the property ‘radius’ is being returned’
I am also uploading the “.fsp” file and the script file here.
embedded_plasmon.lsf (2.7 KB)

embedded_plasmon.fsp (289.2 KB)
Thanks

#2

The warning message is because line 13 selects all the objects (i.e. “sphere_Ag” and “sphere_glass”), so the software does not know which of those objects you are referring to when asking for the radius in line 14. By default it returns the radius of the first of those, i.e. “sphere_Ag”.
I don’t know enough about what you’re doing, but maybe you want to replace line 13 with select("sphere_glass"); so that you get the radius of that object instead.

#3

Hello
Thank you for your reply. The warning message is not popping up now but I am still not sure about the data.

#4

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.3544441759586334, "perplexity": 993.4052026150458}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-39/segments/1537267156901.47/warc/CC-MAIN-20180921072647-20180921093047-00163.warc.gz"}