doc:user:frequencyanalysis:use
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:user:frequencyanalysis:use [2016/10/18 20:43] – papeleux | doc:user:frequencyanalysis:use [2022/04/19 17:17] (current) – [Vizualisation of eigen modes] boman | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| ==== FrequencyAnalysisMethod ==== | ==== FrequencyAnalysisMethod ==== | ||
| Actually two Frequency Analysis Method are implemented in Metafor | Actually two Frequency Analysis Method are implemented in Metafor | ||
| - | * a Power Iteration | + | * a Power Iterations |
| * a Lanczos Frequency Analysis Method (the most efficient one) | * a Lanczos Frequency Analysis Method (the most efficient one) | ||
| Common commands (according to the fact freqAnaly is a FrequencyAnalysisMethod : | Common commands (according to the fact freqAnaly is a FrequencyAnalysisMethod : | ||
| Line 32: | Line 32: | ||
| </ | </ | ||
| - | === PowerIterationFrequencyAnalysisMethod | + | === PowerIterationsFrequencyAnalysisMethod |
| - | Defining a PowerIterationFrequencyAnalysisMethod | + | Defining a PowerIterationsFrequencyAnalysisMethod |
| < | < | ||
| - | freqAnaly = PowerIterationFrequencyAnalysisMethod(domain) | + | freqAnaly = PowerIterationsFrequencyAnalysisMethod(domain) |
| </ | </ | ||
| === LanczosFrequencyAnalysisMethod === | === LanczosFrequencyAnalysisMethod === | ||
| Line 62: | Line 62: | ||
| To archieve this operation, a FrequencyAnalysisValueExtractor can be defined and values can be computed at each time step of a simulation : | To archieve this operation, a FrequencyAnalysisValueExtractor can be defined and values can be computed at each time step of a simulation : | ||
| < | < | ||
| - | freqAnalyValExt = FrequencyAnalysisValueExtractor(freqAnaly, saveFaFac=False) | + | freqAnalyValExt = FrequencyAnalysisValueExtractor(freqAnaly) |
| - | freqAnalyValExt.saveToFaFac(False) | + | freqAnalyValExt.setSaveFaFac(False) |
| </ | </ | ||
| (be care to the potential CPU cost of this operation as FrequencyAnalysis will be computed at each time step) | (be care to the potential CPU cost of this operation as FrequencyAnalysis will be computed at each time step) | ||
| Line 72: | Line 72: | ||
| In some other case, user may only want the eigen values at the end of a complex simulation. FrequencyAnalysisObjectiveFunction | In some other case, user may only want the eigen values at the end of a complex simulation. FrequencyAnalysisObjectiveFunction | ||
| < | < | ||
| - | freqAnalyFObj = FrequencyAnalysisObjectiveFunction(no, | + | freqAnalyFObj = FrequencyAnalysisObjectiveFunction(no, |
| freqAnalyFObj.saveToFaFac(False) | freqAnalyFObj.saveToFaFac(False) | ||
| </ | </ | ||
| Line 84: | Line 84: | ||
| for i in range(domain.getInteractionSet().size()): | for i in range(domain.getInteractionSet().size()): | ||
| win.add(domain.getInteractionSet().getInteraction(i)) | win.add(domain.getInteractionSet().getInteraction(i)) | ||
| - | domain.setAnalysis(freqAnaly); | ||
| for i in range(nbEigenVal): | for i in range(nbEigenVal): | ||
| freqAnaly.showEigenVector(i) | freqAnaly.showEigenVector(i) | ||
| win.update() | win.update() | ||
| - | print "Eigen Vector ", i , " | + | print( "Eigen Vector ", i , " |
| - | | + | |
| except NameError: | except NameError: | ||
| pass | pass | ||
| </ | </ | ||
doc/user/frequencyanalysis/use.1476816182.txt.gz · Last modified: by papeleux
