CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Other] what can i add scale function

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2021, 09:22
Default what can i add scale function
New Member
MOKRANI Abderrahmane
Join Date: Mar 2021
Posts: 1
Rep Power: 0
MOKRANI_A is on a distinguished road
hello everyone
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)
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)


return r;
Thank you
MOKRANI_A is offline   Reply With Quote


add, function, scale

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
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

All times are GMT -4. The time now is 03:25.