|
[Sponsors] |
![]() |
![]() |
#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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 11:04 |
[mesh manipulation] refineMesh Error | mohsen.boojari | OpenFOAM Meshing & Mesh Conversion | 3 | March 1, 2018 22:07 |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 10:20 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 09:31 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |