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

Moment Center and Moment Axis as a function on flow-time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2019, 08:14
Default Moment Center and Moment Axis as a function on flow-time
  #1
New Member
 
Federico
Join Date: Sep 2017
Posts: 13
Rep Power: 8
eeLio is on a distinguished road
Dear all,
I am currently working on a sliding mesh set-up involving the simulation of the flow passing through a tidal turbine. One thing I am struggling with is how to monitor the moment of a force in such a problem:
At each time step (if I refer to a blade) I have that Moment center coordinates and moment axis components are changing.

I tackled this aspect by typing on execute command text line the following:

(define t (rpgetvar 'flow-time)) (define omega 7.644542) solve/monitors/force/set-moment-monitor cm-x y 28 33 , y y /Path/to/cx1.txt n n (* 0.036 (sin (* omega t))) (* 0.036 (cos (* omega t))) 0 (- 0 cos (* omega t)) (sin (* omega t)) 0

The following warning and errors appears although a cx1.txt file is outputted:

(define t (rpgetvar 'flow-time))
t
(define omega 7.644542)
omega

Error: + (add): invalid argument [1]: wrong type [not a number]
Error Object: #[primitive-procedure cos]
solve/monitors/force/set-moment-monitor cm-x y 28 33 , y y /Path/to/cx1.txt n n (* 0.036 (sin (* omega t))) (* 0.036 (cos (* omega t))) 0 (- 0 cos (* omega t))Invalid real.
(sin (* omega t)) 0
z-component of moment axis [0]

Anybody knows what this Errors mean?
I would like to stress the fact that a file ( cx1.txt) was written!
Do you think the aforementioned mathematical expression was calculated?


Hope you can help me with this!!
Thank you in advance

Best regards,

eeLio
eeLio is offline   Reply With Quote

Old   February 1, 2019, 10:40
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by eeLio View Post
solve/monitors/force/set-moment-monitor cm-x y 28 33 , y y /Path/to/cx1.txt

I think the issue is this comma , appearing here but I can't really tell because I don't know your entire case setup. Just go into Fluent and manually type in solve/monitors/force/set-moment-monitor and then follow the prompts.
LuckyTran is offline   Reply With Quote

Reply

Tags
execute command, force monitor, sliding mesh, turbine


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
Working with Python: Query of through-plane flow of multiple clips in one plot PedroInvierno EnSight 8 April 10, 2017 09:23
Valve Design Flow Forces, Report moment Mans1234 FLUENT 1 August 10, 2015 17:28
Failed to simulate wind turbine based on wingmotion tutorial with pimpleDyMFoam gohome OpenFOAM Running, Solving & CFD 0 July 8, 2014 04:12
Center of pressure (confirmation/question) scipy FLUENT 2 March 5, 2012 06:54
Writing Moment coefficient for different walls at different rotational axis harishameed33 Main CFD Forum 0 April 27, 2010 12:17


All times are GMT -4. The time now is 22:25.