|
[Sponsors] |
December 20, 2016, 09:33 |
Swaying in CFX
|
#1 |
New Member
AC
Join Date: Dec 2016
Posts: 3
Rep Power: 10 |
Hi all,
Below is my inputs in CFX-Pre, how do I define the period of the motion as Ansys CFX won't allow the expression Period because it is already an object. Thanks in advance LIBRARY: CEL: &replace EXPRESSIONS: DownWHeight = 0.12 [m] DownWVF = step((x-UpWLength)/1[m])*step((DownWHeight-y)/1[m]) OverallAirVF = 1-OverallWVF OverallWVF = UpWVF+DownWVF UpWHeight = 0.12 [m] UpWLength = 1.2 [m] UpWVF = step((UpWLength-x)/1[m])*step((UpWHeight-y)/1[m]) XAmplitude = 0.06 [m] XFrequency = 1/Period XOmega = 2*pi*XFrequency XSway = -XAmplitude*(XOmega^2)*sin(XOmega*t) YSway = -9.8 [m s^-2] END END END |
|
December 20, 2016, 17:32 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
If "Period" is a reserved variable name then just use another one. Or have I misunderstood your question?
|
|
December 21, 2016, 06:10 |
|
#3 |
New Member
AC
Join Date: Dec 2016
Posts: 3
Rep Power: 10 |
so what other name do I put so CFX understands that i want to define the period of the motion?
|
|
December 21, 2016, 07:13 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
I am very confused by your question. If you want the period as 5[s] then you can define it with slkjghsa = 5[s], and use it with XFrequency = 1/slkjghsa
If you don't like the variable name slkjghsa you can define it as anything you like - except the reserved variable names. |
|
December 21, 2016, 08:25 |
|
#5 |
New Member
AC
Join Date: Dec 2016
Posts: 3
Rep Power: 10 |
Thanks for your answer
|
|
December 21, 2016, 14:28 |
|
#6 | |
Senior Member
Join Date: Feb 2011
Posts: 496
Rep Power: 18 |
Quote:
|
||
Tags |
cfx, sloshing |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX Treatment of Laminar and Turbulent Flows | Jade M | CFX | 18 | September 15, 2022 08:08 |
High Resolution (CFX) vs 2nd Order Upwind (Fluent) | gravis | ANSYS | 3 | March 24, 2011 03:43 |
CFX pressure in Simulations problem | nasdak | CFX | 1 | April 14, 2010 14:22 |
PhD using CFX | Rui | CFX | 9 | May 28, 2007 06:59 |
FSI using CFX and ANSYS | Bi Chang | CFX | 2 | May 10, 2005 05:47 |