|
[Sponsors] |
December 14, 2022, 23:22 |
Syntax error in journal file
|
#1 |
New Member
Join Date: Oct 2022
Posts: 6
Rep Power: 3 |
I am running Fluent v18.2 and trying to run a RANS simulation and I keep getting this error.
syntax error near unexpected token `(' This is a portion of the journal file i wrote. I am not sure where the syntax error is occuring at. (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet, id=5)")) (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet, id=5)")) (cx-gui-do cx-activate-item "NavigationPane*List_Tree1") (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet, id=5)")) (cx-gui-do cx-set-real-entry-list "Velocity Inlet*Frame3*Frame1(Momentum)*Table1*Table19*RealE ntry2(X-Component of Flow Direction)" '( 0.999391)) (cx-gui-do cx-set-real-entry-list "Velocity Inlet*Frame3*Frame1(Momentum)*Table1*Table20*RealE ntry2(Y-Component of Flow Direction)" '( 0.034899)) (cx-gui-do cx-activate-item "Velocity Inlet*PanelButtons*PushButton1(OK)") (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Initialization")) (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Initialization")) (cx-gui-do cx-activate-item "NavigationPane*List_Tree1") (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Initialization")) (cx-gui-do cx-activate-item "Solution Initialization*Table1*ButtonBox8*PushButton1(Initi alize)") /solve/iterate 11 (cx-gui-do cx-activate-item "Information*OK") (cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Case & Data...") (cx-gui-do cx-set-file-dialog-entries "Select File" '( "/home/users/ntu/limz0152/scratch/Basemodel/results/AOA2.cas") "HDF5 Case/Data Files (*.cas.h5 *.dat.h5 )") |
|
December 15, 2022, 00:52 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you have mixed GUI interface commands with TUI (/solve/iterate 11) which could be an issue
you better do: 1. file->write->start journal and make all steps you needed, including solver setting up 2. or do everything using TUI commands
__________________
best regards ****************************** press LIKE if this message was helpful |
|
December 15, 2022, 01:55 |
|
#3 | |
New Member
Join Date: Oct 2022
Posts: 6
Rep Power: 3 |
Quote:
I tried to fix it using the first method you suggested, and my journal came out like this. (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet, id=5)")) (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet, id=5)")) (cx-gui-do cx-activate-item "NavigationPane*List_Tree1") (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet, id=5)")) (cx-gui-do cx-set-real-entry-list "Velocity Inlet*Frame3*Frame1(Momentum)*Table1*Table19*RealE ntry2(X-Component of Flow Direction)" '( 0.999391)) (cx-gui-do cx-set-real-entry-list "Velocity Inlet*Frame3*Frame1(Momentum)*Table1*Table20*RealE ntry2(Y-Component of Flow Direction)" '( 0.034899)) (cx-gui-do cx-activate-item "Velocity Inlet*PanelButtons*PushButton1(OK)") (cx-gui-do cx-activate-item "Solution Initialization*Table1*ButtonBox8*PushButton1(Initi alize)") (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Run Calculation")) (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Run Calculation")) (cx-gui-do cx-activate-item "NavigationPane*List_Tree1") (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Run Calculation")) (cx-gui-do cx-set-integer-entry "Run Calculation*Table1*IntegerEntry10(Number of Iterations)" 11) (cx-gui-do cx-activate-item "Run Calculation*Table1*IntegerEntry10(Number of Iterations)") (cx-gui-do cx-activate-item "Run Calculation*Table1*PushButton22(Calculate)")(cx-gui-do cx-activate-item "Information*OK") (cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Case & Data...") (cx-gui-do cx-set-file-dialog-entries "Select File" '( "/home/users/ntu/limz0152/scratch/Basemodel/results/AOA2.cas") "HDF5 Case/Data Files (*.cas.h5 *.dat.h5 )") I am still having the same syntax error, and it says error on this line: (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Run Calculation")) |
||
December 16, 2022, 00:09 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
as fluent is writing journal automatically, there could be no issues in syntax
once you say you have problem, you probably should show it, in case you need solution more information you'll give better answer you'll receive back
__________________
best regards ****************************** press LIKE if this message was helpful |
|
December 16, 2022, 00:28 |
|
#5 |
New Member
Join Date: Oct 2022
Posts: 6
Rep Power: 3 |
Yes thank you so much, I found out the reason why its not working, the journal file name had a bracket inside which was causing the syntax error.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] LaminarSMOKE compilation error | mdhfiz | OpenFOAM Community Contributions | 7 | October 4, 2022 13:57 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 03:30 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 18:13 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |