Loading...
Searching...
No Matches
parameterizedBCtest.H File Reference

Go to the source code of this file.

Functions

linSys_solvers resize (1)
 
residualNorms resize (linSys_solvers.size())
 
example_paramBC set_gParametrized ("rbf", rbfShapePar)
 
example_paramBC parameterizedBCoffline ()
 
 std::cout<< "Duration offline part = "<< duration<< " seconds"<< std::endl;forAll(linSys_solvers, solverI){ Info<< "Solver "<< linSys_solvers[solverI]<< endl;Info<< endl;auto t1=std::chrono::high_resolution_clock::now();example_paramBC.parameterizedBC(linSys_solvers[solverI], 6);auto t2=std::chrono::high_resolution_clock::now();auto duration=std::chrono::duration_cast< std::chrono::microseconds > (t2 - t1).count()/1e6
 

Variables

Info<< endl;Info<< "*********************************************************"<< endl;Info<< "Performing test for the parameterized BC inverse solver"<< endl;Info<< endl;word outputFolder="./ITHACAoutput/parameterizedBCtest/";volScalarField gTrueField=example_paramBC.list2Field(example_paramBC.gTrue);ITHACAstream::exportSolution(gTrueField, "1", outputFolder, "gTrue");List< word > linSys_solvers = "fullPivLU"
 
Eigen::VectorXd residualNorms
 
auto tO1 = std::chrono::high_resolution_clock::now()
 
auto tO2 = std::chrono::high_resolution_clock::now()
 
auto duration
 

Function Documentation

◆ parameterizedBCoffline()

example_paramBC parameterizedBCoffline ( )

◆ resize() [1/2]

linSys_solvers resize ( 1 )

◆ resize() [2/2]

residualNorms resize ( linSys_solvers. size())

◆ set_gParametrized()

example_paramBC set_gParametrized ( "rbf" ,
rbfShapePar  )

◆ std::cout<< "Duration offline part = "<< duration<< " seconds"<< std::endl;forAll(linSys_solvers, solverI){ Info<< "Solver "<< linSys_solvers[solverI]<< endl;Info<< endl;auto t1=std::chrono::high_resolution_clock::now();example_paramBC.parameterizedBC(linSys_solvers[solverI], 6);auto t2=std::chrono::high_resolution_clock::now();auto duration=std::chrono::duration_cast< std::chrono::microseconds >()

std::cout<< "Duration offline part = "<< duration<< " seconds"<< std::endl;forAll(linSys_solvers, solverI){ Info<< "Solver "<< linSys_solvers[solverI]<< endl;Info<< endl;auto t1=std::chrono::high_resolution_clock::now();example_paramBC.parameterizedBC(linSys_solvers[solverI], 6);auto t2=std::chrono::high_resolution_clock::now();auto duration=std::chrono::duration_cast< std::chrono::microseconds > ( t2 - t1)

Variable Documentation

◆ duration

auto duration
Initial value:
= std::chrono::duration_cast<std::chrono::microseconds>
( tO2 - tO1 ).count() / 1e6
auto tO2
auto tO1

Definition at line 19 of file parameterizedBCtest.H.

◆ linSys_solvers

linSys_solvers[0] = "fullPivLU"

Definition at line 10 of file parameterizedBCtest.H.

◆ residualNorms

Eigen::VectorXd residualNorms

Definition at line 13 of file parameterizedBCtest.H.

◆ tO1

auto tO1 = std::chrono::high_resolution_clock::now()

Definition at line 15 of file parameterizedBCtest.H.

◆ tO2

auto tO2 = std::chrono::high_resolution_clock::now()

Definition at line 18 of file parameterizedBCtest.H.