|
[Sponsors] |
How to get access to interfaceBouCoeffs for a custom function? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 3, 2017, 17:02 |
How to get access to interfaceBouCoeffs for a custom function?
|
#1 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 250
Rep Power: 22 |
Hello,
is it possible to access interfaceBouCoeffs in a custom function for a custom PCG solver version at the location shown below? I have the impression, it's protected. Code section: Code:
namespace Foam { defineTypeNameAndDebug(myPCG, 0); lduMatrix::solver::addsymMatrixConstructorToTable<myPCG> addmyPCGSymMatrixConstructorToTable_; } // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::myPCG::myPCG ( const word& fieldName, const lduMatrix& matrix, const FieldField<Field, scalar>& interfaceBouCoeffs, const FieldField<Field, scalar>& interfaceIntCoeffs, const lduInterfaceFieldPtrsList& interfaces, const dictionary& solverControls ) : lduMatrix::solver ( fieldName, matrix, interfaceBouCoeffs, interfaceIntCoeffs, interfaces, solverControls ) {} Foam::solverPerformance Foam::myPCG::solve ( scalarField& psi, const scalarField& source, const direction cmpt ) const { word precond_name = lduMatrix::preconditioner::getName(controlDict_); // --- Setup class containing solver performance data solverPerformance solverPerf ( lduMatrix::preconditioner::getName(controlDict_) + typeName, fieldName_ ); // How to get access to interfaceBouCoeffs_ for this custom function? myWork::custom_function(... interfaceBouCoeffs_); return solverPerf; } |
|
June 9, 2022, 14:44 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15 |
Hello all,
I was just asking my how the interfaceBouCoeffs are calculated and were. I understand it is an argument to the constructor but I didn't found how they are calculated |
|
June 12, 2022, 06:52 |
|
#3 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 250
Rep Power: 22 |
Have a look at section 4/15 of: https://www.linkedin.com/pulse/openf...menico-lahaye/
This should give you some hints but it's not the complete answer to your question. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create a custom function object | t.oliveira | OpenFOAM Programming & Development | 13 | June 24, 2022 05:41 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 13:41 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 01:47 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |