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

Go to the source code of this file.

Functions

 Info<< endl;Info<< "*********************************************************"<< endl;Info<< "Performing test for the CG inverse solver"<< endl;Info<< endl;word outputFolder="./ITHACAoutput/CGtest/";volScalarField gTrueField=example_CG.list2Field(example_CG.gTrue);ITHACAstream::exportSolution(gTrueField, "1", outputFolder, "gTrue");example_CG.saveSolInLists=1;auto t1=std::chrono::high_resolution_clock::now();if(example_CG.conjugateGradient()){ auto t2=std::chrono::high_resolution_clock::now();auto duration=std::chrono::duration_cast< std::chrono::microseconds > (t2 - t1).count()/1e6
 
 forAll (example_CG.gList, solutionI)
 
example_CG postProcess (outputFolder, "g_CG")
 

Variables

std::cout<< "Duration = "<< duration<< " seconds"<< std::endl;Info<< "CG converged"<< endl;PtrList< volScalarField > heatFluxField
 
 else
 

Function Documentation

◆ forAll()

forAll ( example_CG. gList,
solutionI  )
Examples
02thermalBlock.C, 20incrementalPOD.C, and IHTP01inverseLaplacian.C.

Definition at line 21 of file CGtest.H.

◆ Info<< endl;Info<< "*********************************************************"<< endl;Info<< "Performing test for the CG inverse solver"<< endl;Info<< endl;word outputFolder="./ITHACAoutput/CGtest/";volScalarField gTrueField=example_CG.list2Field(example_CG.gTrue);ITHACAstream::exportSolution(gTrueField, "1", outputFolder, "gTrue");example_CG.saveSolInLists=1;auto t1=std::chrono::high_resolution_clock::now();if(example_CG.conjugateGradient()){ auto t2=std::chrono::high_resolution_clock::now();auto duration=std::chrono::duration_cast< std::chrono::microseconds >()

Info<< endl;Info<< "*********************************************************"<< endl;Info<< "Performing test for the CG inverse solver"<< endl;Info<< endl;word outputFolder="./ITHACAoutput/CGtest/";volScalarField gTrueField=example_CG.list2Field(example_CG.gTrue);ITHACAstream::exportSolution(gTrueField, "1", outputFolder, "gTrue");example_CG.saveSolInLists=1;auto t1=std::chrono::high_resolution_clock::now();if(example_CG.conjugateGradient()){ auto t2=std::chrono::high_resolution_clock::now();auto duration=std::chrono::duration_cast< std::chrono::microseconds > ( t2 - t1)

◆ postProcess()

example_CG postProcess ( outputFolder ,
"g_CG"  )

Variable Documentation

◆ else

else
Initial value:
{
Info << "CG did not converged" << endl

Definition at line 31 of file CGtest.H.

◆ heatFluxField

std::cout<< "Duration = " << duration << " seconds" << std::endl; Info << "CG converged" << endl; PtrList<volScalarField> heatFluxField

Definition at line 20 of file CGtest.H.