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

Writing a CEL expression for y position at a specific timestep

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2019, 18:40
Default Writing a CEL expression for y position at a specific timestep
  #1
New Member
 
Nick Thomas
Join Date: Sep 2018
Posts: 27
Rep Power: 8
nick.l.thomas is on a distinguished road
I am creating a deforming mesh and my equation for the motion is dependent of the starting position of a surface. Is there a way in CEL that I can use this value (the y position of every point on a cylinder at t=0) in a transient simulation? In other words, the y position of the cylinder will be changing but I only want to use its original position as a constant in my expression.
nick.l.thomas is offline   Reply With Quote

Old   March 28, 2019, 04:57
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13
AtoHM is on a distinguished road
It should be possible but I still got some understanding problems. Is this a rigid body motion or do you actually deform the cylinder?
CFX gives you several options to perform mesh deformation. Lets say you want to displace the cylinder points by 1mm per timestep, you can use relative mesh displacement, which applies the deformation relative to the last timestep.
AtoHM is offline   Reply With Quote

Old   March 28, 2019, 08:38
Default
  #3
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
The initial coordinates (Initial X, Initial Y, Initial Z) are available via CEL, say

MyDispX= Initial X + ....
Opaque is offline   Reply With Quote

Old   March 28, 2019, 14:48
Default
  #4
New Member
 
Nick Thomas
Join Date: Sep 2018
Posts: 27
Rep Power: 8
nick.l.thomas is on a distinguished road
Quote:
Originally Posted by Opaque View Post
The initial coordinates (Initial X, Initial Y, Initial Z) are available via CEL, say

MyDispX= Initial X + ....
Thanks, that does the trick!

However, I am trying to use the Y coordinates at every node on a surface so that displacement is unique to each node on the wall. The cylinder moves at a constant velocity and then is displaced back to the start, but I am hoping each bit of the wall will relocate once it reaches a certain point. In other words the cylinder wall will be split during the displacement process. Is this possible? Trying "Initial Y@Cylinder Walls" does not work.
nick.l.thomas is offline   Reply With Quote

Old   March 28, 2019, 15:08
Default
  #5
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Not sure what you are trying to do.

Recall expressions have local context, i.e. if you are evaluating

MyDisp = Initial Y + 2 [cm]

on the Cylinder Walls, I assume the expression is also used under Cylinder Walls where

BOUNDARY: Cylinder Walls
BOUNDARY CONDITIONS:
MESH MOTION:
Option = ...
Displacement = MyDisp
END
END
END

There is no need to refer to the location, it is IMPLIED.

Perhaps I need better context of what your goal is
Opaque is offline   Reply With Quote

Reply

Tags
cel


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
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 06:37
Outlet boundary condition in interFoam Andrea_85 OpenFOAM Running, Solving & CFD 51 July 20, 2017 14:31
[snappyHexMesh] crash sHM H25E OpenFOAM Meshing & Mesh Conversion 11 November 10, 2014 12:27
Retrieve Value from CEL Expression Charon CFX 2 April 15, 2013 05:03
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23


All times are GMT -4. The time now is 18:01.