Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

How to call an Application Method from another Application Method

$
0
0

I have been trying to create one main application method that instantiates and runs other Application methods that I have written. But everytime I try to instantiate another Application Method it says it can't be found.

How do I instantiate an instance of the class defined in an application method, and then call the execute() funciton?

Example: I recorded and modified an application method called FEAworkflow that takes in a file name as a constructor argument, and then stores it as a member variable. The execute() function fot hat class reads that file, meshes it, and then applies a few loads, runs a simulation, and then stores the outputs in a CSV file.

Now I created wrote another application method in which I have a for-loop that itterates over a list of all file-names, and calls FEAworkflow with the new file-name as an argument.


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>