|
[Sponsors] |
May 25, 2008, 16:07 |
CFX post-processing - Current Time Step
|
#1 |
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! |
|
May 25, 2008, 23:26 |
Re: CFX post-processing - Current Time Step
|
#2 |
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 |
|
May 26, 2008, 06:57 |
Re: CFX post-processing - Current Time Step
|
#3 |
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 |
|
May 26, 2008, 09:13 |
Re: CFX post-processing - Current Time Step
|
#4 |
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... |
|
May 26, 2008, 12:51 |
Re: CFX post-processing - Current Time Step
|
#5 |
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 |
|
May 28, 2008, 14:08 |
Re: CFX post-processing - Current Time Step
|
#6 |
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. |
|
May 28, 2008, 14:25 |
Re: CFX post-processing - Current Time Step
|
#7 |
Guest
Posts: n/a
|
oh, I may have figured it out - I enter the algebraic details in the Fluid Models tab?
|
|
May 28, 2008, 14:54 |
Re: CFX post-processing - Current Time Step
|
#8 |
Guest
Posts: n/a
|
That's right.
|
|
May 28, 2008, 15:12 |
Re: CFX post-processing - Current Time Step
|
#9 |
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 |
|
May 29, 2008, 11:23 |
Re: CFX post-processing - Current Time Step
|
#10 |
Guest
Posts: n/a
|
Is this a grid region?
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |