This group is for functions included in the Results Manager. The Results Manager stores analysis results and provides methods to get, print, and export them. Click here to return to the main page.
More...
|
std::vector< std::string > | vsp::GetAllResultsNames () |
|
std::vector< std::string > | vsp::GetAllDataNames (const std::string &results_id) |
|
int | vsp::GetNumResults (const std::string &name) |
|
std::string | vsp::GetResultsName (const std::string &results_id) |
|
std::string | vsp::GetResultsSetDoc (const std::string &results_id) |
|
std::string | vsp::FindResultsID (const std::string &name, int index=0) |
|
std::string | vsp::FindLatestResultsID (const std::string &name) |
|
int | vsp::GetNumData (const std::string &results_id, const std::string &data_name) |
|
int | vsp::GetResultsType (const std::string &results_id, const std::string &data_name) |
|
const std::vector< int > & | vsp::GetIntResults (const std::string &id, const std::string &name, int index=0) |
|
const std::vector< double > & | vsp::GetDoubleResults (const std::string &id, const std::string &name, int index=0) |
|
const std::vector< std::vector< double > > & | vsp::GetDoubleMatResults (const std::string &id, const std::string &name, int index=0) |
|
const std::vector< std::string > & | vsp::GetStringResults (const std::string &id, const std::string &name, int index=0) |
|
const std::vector< vec3d > & | vsp::GetVec3dResults (const std::string &id, const std::string &name, int index=0) |
|
std::string | vsp::CreateGeomResults (const std::string &geom_id, const std::string &name) |
|
void | vsp::DeleteAllResults () |
|
void | vsp::DeleteResult (const std::string &id) |
|
void | vsp::WriteResultsCSVFile (const std::string &id, const std::string &file_name) |
|
void | vsp::PrintResults (const std::string &results_id) |
|
void | vsp::PrintResultsDocs (const std::string &results_id) |
|
void | vsp::WriteTestResults () |
|
◆ CreateGeomResults()
std::string vsp::CreateGeomResults |
( |
const std::string & | geom_id, |
|
|
const std::string & | name ) |
|
extern |
Create a new result for a Geom
string gid1 =
AddGeom(
"POD",
"" );
array<int> @int_arr =
GetIntResults( mesh_geom_res_id,
"Num_Tris" );
if ( int_arr[0] < 4 ) { Print( "---> Error: API CreateGeomResults" ); }
std::string ComputeCompGeom(int set, bool half_mesh, int file_export_types)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
const std::vector< int > & GetIntResults(const std::string &id, const std::string &name, int index=0)
std::string CreateGeomResults(const std::string &geom_id, const std::string &name)
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | name | Result name |
- Returns
- Result ID
◆ DeleteAllResults()
void vsp::DeleteAllResults |
( |
| ) |
|
|
extern |
Delete all results
string gid1 =
AddGeom(
"POD",
"" );
if (
GetNumResults(
"Comp_Mesh" ) != 0 ) { Print(
"---> Error: API DeleteAllResults" ); }
int GetNumResults(const std::string &name)
◆ DeleteResult()
void vsp::DeleteResult |
( |
const std::string & | id | ) |
|
|
extern |
Delete a particular result
string gid1 =
AddGeom(
"POD",
"" );
if (
GetNumResults(
"Comp_Mesh" ) != 0 ) { Print(
"---> Error: API DeleteResult" ); }
void DeleteResult(const std::string &id)
- Parameters
-
◆ FindLatestResultsID()
std::string vsp::FindLatestResultsID |
( |
const std::string & | name | ) |
|
|
extern |
Find the latest results ID for particular result name
for ( int i = 0; i < int( results_array.size() ); i++ )
{
}
void PrintResults(const std::string &results_id)
std::vector< std::string > GetAllResultsNames()
std::string FindLatestResultsID(const std::string &name)
- Parameters
-
- Returns
- Result ID
◆ FindResultsID()
std::string vsp::FindResultsID |
( |
const std::string & | name, |
|
|
int | index = 0 ) |
|
extern |
Find a results ID given its name and index
if ( res_id.size() == 0 ) { Print( "---> Error: API FindResultsID" ); }
std::string FindResultsID(const std::string &name, int index=0)
- Parameters
-
[in] | name | Result name |
[in] | index | Result index |
- Returns
- Result ID
◆ GetAllDataNames()
std::vector< std::string > vsp::GetAllDataNames |
( |
const std::string & | results_id | ) |
|
|
extern |
Get all data names for a particular result
if ( data_names.size() != 5 ) { Print( "---> Error: API GetAllDataNames" ); }
std::vector< std::string > GetAllDataNames(const std::string &results_id)
- Parameters
-
- Returns
- Array of result names
◆ GetAllResultsNames()
std::vector< std::string > vsp::GetAllResultsNames |
( |
| ) |
|
|
extern |
Get the name of all results in the Results Manager
for ( int i = 0; i < int( results_array.size() ); i++ )
{
}
- Returns
- Array of result names
◆ GetDoubleMatResults()
const std::vector< std::vector< double > > & vsp::GetDoubleMatResults |
( |
const std::string & | id, |
|
|
const std::string & | name, |
|
|
int | index = 0 ) |
|
extern |
Get all matrix (vector<vector<double>>) values for a particular result, name, and index
- Parameters
-
[in] | id | Result ID |
[in] | name | Data name |
[in] | index | Data index |
- Returns
- 2D array of data values
◆ GetDoubleResults()
const std::vector< double > & vsp::GetDoubleResults |
( |
const std::string & | id, |
|
|
const std::string & | name, |
|
|
int | index = 0 ) |
|
extern |
Get all double values for a particular result, name, and index
const std::vector< double > & GetDoubleResults(const std::string &id, const std::string &name, int index=0)
- Parameters
-
[in] | id | Result ID |
[in] | name | Data name |
[in] | index | Data index |
- Returns
- Array of data values
◆ GetIntResults()
const std::vector< int > & vsp::GetIntResults |
( |
const std::string & | id, |
|
|
const std::string & | name, |
|
|
int | index = 0 ) |
|
extern |
Get all integer values for a particular result, name, and index
if (
GetNumData( res_id,
"Test_Int" ) != 2 ) { Print(
"---> Error: API GetNumData " ); }
if ( int_arr[0] != 1 ) { Print( "---> Error: API GetIntResults" ); }
if ( int_arr[0] != 2 ) { Print( "---> Error: API GetIntResults" ); }
int GetNumData(const std::string &results_id, const std::string &data_name)
- Parameters
-
[in] | id | Result ID |
[in] | name | Data name |
[in] | index | Data index |
- Returns
- Array of data values
◆ GetNumData()
int vsp::GetNumData |
( |
const std::string & | results_id, |
|
|
const std::string & | data_name ) |
|
extern |
Get the number of data values for a given result ID and data name
if (
GetNumData( res_id,
"Test_Int" ) != 2 ) { Print(
"---> Error: API GetNumData " ); }
if ( int_arr[0] != 1 ) { Print( "---> Error: API GetIntResults" ); }
if ( int_arr[0] != 2 ) { Print( "---> Error: API GetIntResults" ); }
- Parameters
-
[in] | results_id | Result ID |
[in] | data_name | Data name |
- Returns
- Number of data values
◆ GetNumResults()
int vsp::GetNumResults |
( |
const std::string & | name | ) |
|
|
extern |
Get the number of results for a particular result name
if (
GetNumResults(
"Test_Results" ) != 2 ) { Print(
"---> Error: API GetNumResults" ); }
- Parameters
-
- Returns
- Number of results
◆ GetResultsName()
std::string vsp::GetResultsName |
( |
const std::string & | results_id | ) |
|
|
extern |
Get the name of a result given its ID
string analysis_name = "VSPAEROComputeGeometry";
Print( "Results Name: ", false );
std::string ExecAnalysis(const std::string &analysis)
void SetAnalysisInputDefaults(const std::string &analysis)
std::string GetResultsName(const std::string &results_id)
- Parameters
-
- Returns
- Result name
◆ GetResultsSetDoc()
std::string vsp::GetResultsSetDoc |
( |
const std::string & | results_id | ) |
|
|
extern |
Get the documentation string for a result given its ID
string analysis_name = "VSPAEROComputeGeometry";
Print( "Results doc: ", false );
std::string GetResultsSetDoc(const std::string &results_id)
- Parameters
-
- Returns
- Result documentation string
◆ GetResultsType()
int vsp::GetResultsType |
( |
const std::string & | results_id, |
|
|
const std::string & | data_name ) |
|
extern |
Get the data type for a given result ID and data name
for ( int j = 0; j < int( res_array.size() ); j++ )
{
}
int GetResultsType(const std::string &results_id, const std::string &data_name)
- See also
- RES_DATA_TYPE
- Parameters
-
[in] | results_id | Result ID |
[in] | data_name | Data name |
- Returns
- Data type enum (i.e. DOUBLE_DATA)
◆ GetStringResults()
const std::vector< std::string > & vsp::GetStringResults |
( |
const std::string & | id, |
|
|
const std::string & | name, |
|
|
int | index = 0 ) |
|
extern |
Get all string values for a particular result, name, and index
if ( str_arr[0] != "This Is A Test" ) { Print( "---> Error: API GetStringResults" ); }
const std::vector< std::string > & GetStringResults(const std::string &id, const std::string &name, int index=0)
- Parameters
-
[in] | id | Result ID |
[in] | name | Data name |
[in] | index | Data index |
- Returns
- Array of data values
◆ GetVec3dResults()
const std::vector< vec3d > & vsp::GetVec3dResults |
( |
const std::string & | id, |
|
|
const std::string & | name, |
|
|
int | index = 0 ) |
|
extern |
Get all vec3d values for a particular result, name, and index
double tol = 0.00001;
Print( "X: ", false );
Print( vec3d_vec[0].x(), false );
Print( "\tY: ", false );
Print( vec3d_vec[0].y(), false );
Print( "\tZ: ", false );
Print( vec3d_vec[0].z() );
const std::vector< vec3d > & GetVec3dResults(const std::string &id, const std::string &name, int index=0)
- Parameters
-
[in] | id | Result ID |
[in] | name | Data name |
[in] | index | Data index |
- Returns
- Array of data values
◆ PrintResults()
void vsp::PrintResults |
( |
const std::string & | results_id | ) |
|
|
extern |
Print a result's name value pairs to stdout
string analysis_name = "VSPAEROComputeGeometry";
- Parameters
-
[in] | results_id | string Result ID |
◆ PrintResultsDocs()
void vsp::PrintResultsDocs |
( |
const std::string & | results_id | ) |
|
|
extern |
Print a result's names and documentation to stdout
string analysis_name = "VSPAEROComputeGeometry";
PrintResultsDoc( rid );
- Parameters
-
[in] | results_id | string Result ID |
◆ WriteResultsCSVFile()
void vsp::WriteResultsCSVFile |
( |
const std::string & | id, |
|
|
const std::string & | file_name ) |
|
extern |
Export a result to CSV
string analysis_name = "VSPAEROComputeGeometry";
void WriteResultsCSVFile(const std::string &id, const std::string &file_name)
- Parameters
-
[in] | id | Rsult ID |
[in] | file_name | CSV output file name |
◆ WriteTestResults()
void vsp::WriteTestResults |
( |
| ) |
|
|
extern |
Generate some example results for testing.
for ( int i = 0; i < int( results_array.size() ); i++ )
{
}