|
[Sponsors] |
May 27, 2017, 13:06 |
decomposePar error
|
#1 | |||
Member
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10 |
Hi Foamers,
I could run waveFoam on my school HPC , however when I tried to run decomposePar i had some error Quote:
Quote:
Quote:
In my system half way across the earth, i could use decomposePar in OF231, however I couldnt use it in OF301 (when i import the exact same case and files over) Any help would be tremendously appreciated Last edited by chia87; May 27, 2017 at 14:11. Reason: of231 vs of301 |
||||
May 28, 2017, 16:23 |
|
#2 |
Senior Member
|
Hi,
In fact the error is caused by waveAlpha boundary condition for p_rgh (and the root of the problem is design of waveTheory::New method). Currently it asks for waveProperties in object registry (waveFoam reads this dictionary and puts it into object registry, while decomposePar knows nothing about this dictionary). So, you have several solutions 1. Remove waveAlpha BC from p_rgh. 2. Remove waveAlpha BC from p_rgh, decompose case, correct Bfs in decomposed case. 3. Correct waveTheory::New method (so it looks up dictionary in the registry first and if it fails, reads the dictionary) submit patch upstream. I.e. this piece of code Code:
{ const dictionary coeffDict_ ( (mesh_.thisDb().lookupObject<IOdictionary>("waveProperties")) .subDict(subDictName + "Coeffs") ); coeffDict_.lookup("waveType") >> waveTheoryTypeName; } Code:
{ if (mesh_.thisDb().foundObject<IOdictionary>("waveProperties") { const dictionary coeffDict ( (mesh_.thisDb().lookupObject<IOdictionary>("waveProperties")) .subDict(subDictName + "Coeffs") ); coeffDict.lookup("waveType") >> waveTheoryTypeName; } else { const IOdictionary waveDict( IOobject( "waveProperties", mesh_.time().constant(), mesh_, IOobject::MUST_READ, IOobject::NO_WRITE, false) ); waveDict.subDict(subDictName + "Coeffs").lookup("waveType") >> waveTheoryTypeName; } } |
|
|
|
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 01:21 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |