CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

how to avoid strange keywords

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2017, 17:04
Default how to avoid strange keywords
  #1
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Hi All,
I coded function
Code:
tmp<volVectorField> fun()
{
    return tmp<volVectorField> 
             (
                  fvc::div(rho1/rho2*B*B*G*G)
             );
};
and when I run the solver I got this message like
Code:
keyword div((((rho1|rho2)*B*B*G*G) is undefined in fvSchemes
how to avoid this?
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   October 20, 2017, 03:23
Default
  #2
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
Try following in Solver:

Code:
fvc::div(rho1/rho2*B*B*G*G,"weirdDivergenceTerm")
and in fvSchemes:

Code:
weirdDivergenceTerm Gauss upwind; //as an example
guin is offline   Reply With Quote

Old   October 20, 2017, 05:25
Default
  #3
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Hi Rodrigo,
Thank you so much, it works
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Reply


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
Strange Nut behaviour with K-OmegaSST nicolarre OpenFOAM Running, Solving & CFD 12 March 19, 2019 20:35
Strange STL when using cuttingPlane C-L OpenFOAM Post-Processing 2 September 26, 2017 05:44
[snappyHexMesh] Strange lines with snappyHexMesh staubchen OpenFOAM Meshing & Mesh Conversion 2 May 20, 2016 08:04
[blockMesh] Strange non-hexahedral cells? maka15 OpenFOAM Meshing & Mesh Conversion 3 May 19, 2016 08:56
Strange residuals behaviour xxxx Main CFD Forum 1 July 13, 2013 14:40


All times are GMT -4. The time now is 02:19.