TAGGED: script
-
-
May 15, 2023 at 3:37 am
Saha
SubscriberHi, 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 pm
Guilin Sun
Ansys EmployeeIt 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 pm
Saha
SubscriberThanks 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 pm
Guilin Sun
Ansys EmployeeI 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
- Import material .txt file with script
- Absorption cross-section of AuNR excited by prism-based TIR
- How to measure transmission coefficients on a given plane .
- TE Polarization Fraction + Waveguide TE/TM Fraction
- Edge Coupler EME Example Issue
- 2D inverse design grating coupler
- Lumerical Python API Topology Optimization Error 2025 R1
- FDE : Simulation waveguides with electrodes
- Loss of lithium niobate phase modulator
-
2577
-
933
-
792
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.