|
[Sponsors] |
October 18, 2024, 15:35 |
coded - error - OpenFOAM 11
|
#1 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Hi,
I created the code below and managed to compile it successfully in OpenFOAM 11. However, there is no result coming out, the directories are being generated, but the information about the face normals is not being written. What could I be doing wrong? I actually only want the normal on the wall faces. Code:
computeNormals { libs ("libutilityFunctionObjects.so"); type coded; redirectType computeNormals; writeControl timeStep; //outputTime; //writeInterval 0.2; code #{ //const surfaceVectorField& normals = mesh().Sf(); //normals.write(); //const vectorField& Sfp = mesh_.Sf().boundaryField()[patchi]; //const scalarField& magSfp = mesh_.magSf().boundaryField()[patchi]; const vectorField& Sfp = mesh().Sf(); const scalarField& magSfp = mesh().magSf(); Sfp.write(); magSfp.write(); #}; } The function (computeNormals) is included in the controlDict. Thanks |
|
October 20, 2024, 17:12 |
|
#3 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
||
Tags |
coded, coded function object, openfoam11 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
coded functionObjects behaving not as expected | alexfells | OpenFOAM | 2 | October 28, 2020 04:58 |
Coded function object in openfoam v5 | kit607 | OpenFOAM Post-Processing | 3 | September 29, 2020 16:43 |
Unknown character in name of output variable when using coded function object | pvergnol | OpenFOAM Post-Processing | 5 | August 12, 2020 14:29 |
codeInclude in coded function in controlDict, and yPlus | LuisAlberto | OpenFOAM Programming & Development | 4 | August 18, 2015 13:48 |
coded function object and field average | matthias | OpenFOAM Post-Processing | 3 | June 30, 2014 05:52 |