|
[Sponsors] |
August 20, 2022, 05:01 |
autoPtr<interpolation<scalar> > error
|
#1 |
New Member
Zhang Yan
Join Date: Nov 2021
Posts: 15
Rep Power: 4 |
Hello, Foamers!
I referred to the link below to get interpolated pressure and I also do some changes in the new version (v2106). However, there is an error when compilling. If someone can help me to solve it, I will be very grateful. Point interpolation in OF Code: Code:
dictionary interpolationDict = mesh.schemesDict().subDict("interpolationSchemes"); Info << "interpolationSchemes: " << interpolationDict << endl; autoPtr<interpolation<scalar> > P_int = interpolation<scalar>::New(interpolationDict, p); Code:
Entry 'p' not found in dictionary "/home/dyfluid/OpenFOAM/cases07/IBSystem/2DIBMCylinder_stationary_0710_4ProcessorV3-2/system/fvSchemes.interpolationSchemes" file: /home/dyfluid/OpenFOAM/cases07/IBSystem/2DIBMCylinder_stationary_0710_4ProcessorV3-2/system/fvSchemes.interpolationSchemes at line 42. From const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, Foam::keyType::option) const in file db/dictionary/dictionary.C at line 413. |
|
August 23, 2022, 05:11 |
|
#2 |
Senior Member
|
Don't know exactly what you are trying to achieve. But according to the error message the entry is missing from the sub dict interpolationSchemes?
May be you can create a new subdict and lookUp any type of primitive. In this case it will be specificed in fvSolution. Code:
const dictionary& myDict = mesh.solutionDict().subDict("interpolationControls"); scalar p_int = myDict.lookupOrDefault<scalar>("myDict",0.1); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 00:21 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 09:00 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 09:17 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |