|
[Sponsors] |
November 13, 2023, 10:56 |
making a coded files
|
#1 |
New Member
Turhan
Join Date: Sep 2022
Posts: 16
Rep Power: 4 |
Dear all,
Through a coded file I will try to multiple the volume flow with the sediment fraction. This way I can calculate the volume flow of the sediment through the outlet. What I currently have is this: Code:
compute_SedVolumeFlow { libs ("libutilityFunctionObjects.so"); type coded; name compute_SedVolumeFlow; outputControl writeTime; codeWrite #{ label patchID = mesh().boundaryMesh().findPatchID("outlet"); const volScalarField& phi = mesh().lookupObject<volScalarField>("phi"); const volScalarField& alpha = mesh().lookupObject<volScalarField>("alpha.sludge"); volScalarField SedVolumeFlow = phi*alpha; SedVolumeFlow.write(); #}; } |
|
Tags |
codedfunctionobject, libutilityfunctionobjects, postprocess function |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] swak4foam compiling issues on a cluster | saj216 | OpenFOAM Installation | 5 | January 17, 2023 17:05 |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 17:18 |
UDF issue | MASOUD | Fluent UDF and Scheme Programming | 14 | December 6, 2012 14:39 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |