Last change
on this file since 4322 was 4322, checked in by Mathieu Morlighem, 15 years ago |
copied change from diagnostic to other solutions
|
File size:
1.1 KB
|
Rev | Line | |
---|
[4302] | 1 | function md=surfaceslope(md);
|
---|
| 2 | %SURFACESLOPE - compute the surface slope of a model
|
---|
[4102] | 3 | %
|
---|
| 4 | % Usage:
|
---|
[4113] | 5 | % md=surfaceslope(md)
|
---|
[4102] | 6 | %
|
---|
| 7 | %timing
|
---|
| 8 | t1=clock;
|
---|
| 9 |
|
---|
[4294] | 10 | numanalyses=1;
|
---|
[4302] | 11 | analyses=[SurfaceSlopeAnalysisEnum];
|
---|
| 12 | solution_type=SurfaceSlopeSolutionEnum;
|
---|
[4102] | 13 |
|
---|
| 14 | displaystring(md.verbose,'%s',['create finite element model']);
|
---|
[4296] | 15 | femmodel=NewFemModel(md,solution_type,analyses,numanalyses);
|
---|
[4102] | 16 |
|
---|
| 17 | %retrieve parameters
|
---|
| 18 | verbose=femmodel.parameters.Verbose;
|
---|
| 19 | qmu_analysis=femmodel.parameters.QmuAnalysis;
|
---|
| 20 |
|
---|
| 21 | %compute solution
|
---|
| 22 | if ~qmu_analysis,
|
---|
| 23 | displaystring(verbose,'%s',['call computational core']);
|
---|
[4113] | 24 | femmodel=surfaceslope_core(femmodel);
|
---|
| 25 |
|
---|
| 26 | displaystring(verbose,'%s',['write results']);
|
---|
[4322] | 27 | results=OutputResults(femmodel.elements, femmodel.nodes , femmodel.vertices , femmodel.loads , femmodel.materials, femmodel.parameters, femmodel.results);
|
---|
| 28 | md.results.(EnumAsString(solution_type))=ProcessPatch(results);
|
---|
[4113] | 29 |
|
---|
[4102] | 30 | else
|
---|
| 31 | %launch dakota driver for diagnostic core solution
|
---|
[4193] | 32 | Qmu(femmodel,femmodel.parameters);
|
---|
[4102] | 33 | end
|
---|
| 34 |
|
---|
| 35 | %stop timing
|
---|
| 36 | t2=clock;
|
---|
| 37 | displaystring(md.verbose,'\n%s\n',['solution converged in ' num2str(etime(t2,t1)) ' seconds']);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.