CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Cannot plot expression: Traceback (most recent call last): File "<string>", line 1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2023, 07:29
Default Cannot plot expression: Traceback (most recent call last): File "<string>", line 1
  #1
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
when I use the expression in the fluent, it gives the following errors, what is the reason?

velocity magnitude=0.073963122*(1+0.5*sin(2*PI*22*t))

Cannot plot expression: Traceback (most recent call last):
File "<string>", line 1, in <module>
RuntimeError: sin: The argument should be either dimensionless or have units of Angle but it has units of [s]
hitzhwan is offline   Reply With Quote

Old   March 19, 2023, 08:59
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,848
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by hitzhwan View Post
when I use the expression in the fluent, it gives the following errors, what is the reason?

velocity magnitude=0.073963122*(1+0.5*sin(2*PI*22*t))

Cannot plot expression: Traceback (most recent call last):
File "<string>", line 1, in <module>
RuntimeError: sin: The argument should be either dimensionless or have units of Angle but it has units of [s]



The reason is that the argument in the sin function is dimensional. You need to define something like t/T.
FMDenaro is online now   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
[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
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 8, 2019 23:50
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41


All times are GMT -4. The time now is 12:26.