TAGGED: script
-
-
May 15, 2023 at 3:37 amSahaSubscriber
Hi, I need a quick help on this error in analysis script
-->sppump=sourcepower(f,1,'Pump'); # Pump is name for one of the sourcesÂ
error-->in sourcepower: no source named Pump was found
But when I am just testing it in command prompt, this line works. Not sure what I am doing wrong. -
May 15, 2023 at 9:37 pmGuilin SunAnsys Employee
It might be related to version? I tested using the newest version of FDTD and it works fine:
f=getdata("CD::T","f");
sp=sourcepower(f);
spp=sourcepower(f,1,"source_1");
-
May 25, 2023 at 4:41 pmSahaSubscriber
Thanks for responding. However it still doesn't work for the script. Is there any alternative way to extract the power info using getdata()?
-
May 25, 2023 at 5:44 pmGuilin SunAnsys Employee
I am not sure what do you mean "for the script". I tested a file and it works fine.
Have you upgraded the software version? what is your OS version?
If this hinders your project and could not find a way to resolve, I would suggest that you disable the other source ad then use the default sourcepower to get the specific source result, with the given frequency.
Â
Â
-
- The topic ‘How to refer a particular source in script for simulation with multiple source?’ is closed to new replies.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Errors Running Ring Modulator Example on Cluster
- INTERCONNECT – No results unless rerun simulation until it gives any
- Import material .txt file with script
- Help for qINTERCONNECT
- Trapezoidal ring
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- Edge Coupler EME Example Issue
- How to measure transmission coefficients on a given plane .
-
1231
-
543
-
523
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.