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

expected ‘)’ before ‘:’ token

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2022, 11:22
Default expected ‘)’ before ‘:’ token
  #1
New Member
 
Mona
Join Date: Mar 2022
Posts: 5
Rep Power: 4
Monaglp is on a distinguished road
Hi, does anybody know how can I fix the error?


my code:

fvm:: Sp(dalphadt : (alpha+0.001), ctilde)


error:
expected ‘)’ before ‘:’ token
Monaglp is offline   Reply With Quote

Old   June 20, 2022, 12:30
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 121
Rep Power: 8
Krapf is on a distinguished road
Are you trying to divide "dalphadt" by "(alpha+0.001)"? If so, you must use "/" instead of ":".
Krapf is offline   Reply With Quote

Old   June 20, 2022, 15:59
Default
  #3
New Member
 
Mona
Join Date: Mar 2022
Posts: 5
Rep Power: 4
Monaglp is on a distinguished road
Quote:
Originally Posted by Krapf View Post
Are you trying to divide "dalphadt" by "(alpha+0.001)"? If so, you must use "/" instead of ":".


I just wanna mention that alpha has a small value. because I see this error at the end.




Foam::error:: printStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::writeFuns::insert(double, Foam:: DynamicList<float, 0u, 2u, 1u>&) at ??:?
#4 void Foam::writeFuns::write<double>(std:: ostream&, bool, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::vtkMesh const&) at ??:?
#5 ? at ??:?
#6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7 ? at ??:?
Monaglp 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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 04:53
POSDAT problem piotka STAR-CD 4 June 12, 2009 08:43
wmake compiling Problem with OF1.5 openTom OpenFOAM Installation 4 May 3, 2009 14:44
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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