|
[Sponsors] |
March 3, 2021, 10:22 |
what can i add scale function
|
#1 |
New Member
MOKRANI Abderrahmane
Join Date: Mar 2021
Posts: 1
Rep Power: 0 |
hello everyone
please how i can add a function to the differential equation in openfoam, especially the scale function, like here : fvm::ddt(T) - (1/(1+dfra(T)*Lat/(CP*eT)))*fvm::laplacian(DT, T) == fvOptions(T) i can't difinde (dfra(T)) the function what i want add it is this: int fraction(int n); using namespace std; double dfra (double a) { double r; if(a>-0.5 && a<+0.5) r=1; else r=0; return r; } Thank you |
|
Tags |
add, function, scale |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 12:04 |
[mesh manipulation] refineMesh Error | mohsen.boojari | OpenFOAM Meshing & Mesh Conversion | 3 | March 1, 2018 23:07 |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |