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

v10-Repeated errors arising with "transformPoints" in bash script

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 3 Post By Tobermory
  • 3 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2023, 08:15
Default v10-Repeated errors arising with "transformPoints" in bash script
  #1
New Member
 
Niall O'Neill
Join Date: Feb 2023
Posts: 21
Rep Power: 3
nialloneill is on a distinguished road
Hello,

I am meshing a wind turbine as part of a tutorial that I'm doing. The tutorial was originally written for v3 I think (in 2017), and I am adapting it to v10, this involved only minor changes so far like the surfaceFeatureExtract-> SurfaceFeatures dict, but It seems there's some other syntax issue here. The syntax in the mesh making bash file is as follows:
_______________________________________
(to rotate the 'rotating region')
transformPoints -parallel -rotate '((1 0 0)(0.993572 0 0.113203))'

(to transform the overall mesh from mm to m)
transformPoints -scale '0.001'
______________________________________
which results in the following errors in the log file (respectively)
___________________________________
[0] --> FOAM FATAL ERROR:
[0] Invalid option: -rotate
[0]
[0]
FOAM parallel run exiting

and

--> FOAM FATAL ERROR:
Invalid option: -scale

FOAM exiting
_____________________________

Can't see where the obvious syntax errors here are, if they point out to anyone, let me know. Thanks
nialloneill is offline   Reply With Quote

Old   August 19, 2023, 09:41
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 717
Rep Power: 14
Tobermory will become famous soon enough
Niall

if I do a quick:
Code:
grep -r transformPoints /opt/openfoam10/tutorials
then I get the following:
Quote:
/opt/openfoam10/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allrun:runApplication transformPoints "scale=(1 0 1)"
/opt/openfoam10/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allrun:runApplication transformPoints "scale=(1 0 1)"
/opt/openfoam10/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/Allmesh:runApplication transformPoints "scale=(0.01 0.01 0.01)"
/opt/openfoam10/tutorials/incompressible/pimpleFoam/RAS/ballValve/Allrun:runApplication transformPoints -pointSet ball "Rz=-45"
/opt/openfoam10/tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allrun:runApplication transformPoints "scale=(1.6666 1 1)"
which does suggest that you've got the syntax wrong ... or rather, that it has been updated since v3. Try using the examples above to rewrite. Good luck.
Yann, AtoHM and nialloneill like this.
Tobermory is offline   Reply With Quote

Old   August 21, 2023, 04:04
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,170
Rep Power: 27
Yann will become famous soon enough
I would also add 2 more tips in addition to Tobermory's one:

Code:
transformPoints -help
And

Code:
foamInfo transformPoints
Are also good ways to get information about an utility and how to use it.

Cheers,
Yann
AtoHM, Tobermory and nialloneill like this.
Yann is offline   Reply With Quote

Old   August 21, 2023, 05:06
Default
  #4
New Member
 
Niall O'Neill
Join Date: Feb 2023
Posts: 21
Rep Power: 3
nialloneill is on a distinguished road
Those are very handy features that I wasn't aware of, thanks! Will be sure to use that with other syntax issues in future.
nialloneill 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
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 15:21.