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

CFX post-processing - Current Time Step

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 25, 2008, 16:07
Default CFX post-processing - Current Time Step
  #1
Molly
Guest
 
Posts: n/a
I'm trying to build an expression in CFX-Post to determine the work done by a fluid in a simple flat-plate FSI case. I'm having trouble when it comes to getting the correct time step in my expression - when I try to use ctstep, I get the total time step (80) at all times. Does anyone know how to get this parameter to reflect the current time step? The CFX help is singularly unhelpful, as usual.

Cheers!
  Reply With Quote

Old   May 25, 2008, 23:26
Default Re: CFX post-processing - Current Time Step
  #2
CycLone
Guest
 
Posts: n/a
current timestep (ctstep) is the current timestep number. You need "dtime", which returns the current value of the timestep number.

That said, why do you need the timestep value for this calculation?

-CycLone
  Reply With Quote

Old   May 26, 2008, 06:57
Default Re: CFX post-processing - Current Time Step
  #3
Molly
Guest
 
Posts: n/a
Well, fair enough. I'm not entirely sure how to achieve this work calculation, this was just one of the ideas I had as I've been working on this project. Do you have any recommendations as how to determine the work?

I was thinking I could determine the work by multiplying the force (areaint(pressure)@surface) by the plate displacement in the simulation minus the displacement I had set in Ansys. It's this last value that I'd need the current time step for.

If there's an easier way, I'd love to hear it.

Thanks! M
  Reply With Quote

Old   May 26, 2008, 09:13
Default Re: CFX post-processing - Current Time Step
  #4
Molly
Guest
 
Posts: n/a
Either way, I cannot get this value to work for me - when I try to enter it an expression, I get the following error:

"The following unrecognised name was referenced: dtime.."

I feel like I'm missing a crucial step in all this...
  Reply With Quote

Old   May 26, 2008, 12:51
Default Re: CFX post-processing - Current Time Step
  #5
CycLone
Guest
 
Posts: n/a
Hi Molly,

To get the displacement, just use "Mesh Displacement X|Y|Z", this is the displacement at the current timestep. You also need to account for the normal vs. tangential direction. This can be done by taking the dot product of the mesh displacement and surface normal. The following expression does all of this will return the total work at a surface in a single timestep:

Work = areaInt(Pressure * (Normal X*Mesh Displacement X + Normal Y*Mesh Displacement Y + Normal Z*Mesh Displacement Z))@Location

Just replace 'Location' with the name of your surface. You will then need to integrate this over the length of your run using a macro in Post.

It might be easier to create an algebraic AV in Pre equating to the local work per unit area as:

workPerUnitArea = Pressure * (Normal X*Mesh Displacement X + Normal Y*Mesh Displacement Y + Normal Z*Mesh Displacement Z

Then create a monitor expression equal to:

workInput = areaInt(workPerUnitArea)@Location

At the end of the run you can right click on the plot in the Solver Manager and export the plot data to a .csv file, which you can then load into Excel and integrate.

-CycLone
  Reply With Quote

Old   May 28, 2008, 14:08
Default Re: CFX post-processing - Current Time Step
  #6
Molly
Guest
 
Posts: n/a
Okay, thank you. I haven't gotten it quite right yet, however. I'm trying to do this as you've described in Pre: I assumed that by "AV" you mean additional variable, but I can't create an expression that way (only set units, tensor type, etc), so I created a new expression and inserted that into the monitored expression as you describe. The error I get says that WorkPerInputArea is an invalid argument.

Do I edit the AV in the command editor and place the expression in there?

Again, thank you so much, you've been very helpful.
  Reply With Quote

Old   May 28, 2008, 14:25
Default Re: CFX post-processing - Current Time Step
  #7
Molly
Guest
 
Posts: n/a
oh, I may have figured it out - I enter the algebraic details in the Fluid Models tab?
  Reply With Quote

Old   May 28, 2008, 14:54
Default Re: CFX post-processing - Current Time Step
  #8
CycLone
Guest
 
Posts: n/a
That's right.
  Reply With Quote

Old   May 28, 2008, 15:12
Default Re: CFX post-processing - Current Time Step
  #9
Molly
Guest
 
Posts: n/a
Okay. The boundary I'm trying to determine the work on is a 3D plate, and this is apparently an issue. As I start the solver, I get this error under Initial Conditions Supplied by Fields in the Input Files:

Domain Name : Default Domain

Mesh Coordinates

----------------------------------

Error in subroutine CEL_FORCALC : Normal unit vectors are only available for boundaries or 2d regions when using Expression Language

GETVAR originally called by subroutine SU_PERMANENT_DVAR

Any ideas? I'm sorry if this is getting annoying. I hope you can help. M
  Reply With Quote

Old   May 29, 2008, 11:23
Default Re: CFX post-processing - Current Time Step
  #10
CycLone
Guest
 
Posts: n/a
Is this a grid region?
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 05:13
Time step, Number of time step, Maxximum Iterations per time step sandisk FLUENT 0 July 18, 2011 03:57
Modeling in micron scale using icoFoam m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 01:36
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Small time step and CFX solver crashing Vanessa CFX 2 June 21, 2006 10:18


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