CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Other] what can i add scale function

Register Blogs Community New Posts Updated Threads Search

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

Reply

Tags
add, function, scale


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 20:07.