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.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.