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

Expression which depends on time?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By urosgrivc
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2019, 08:24
Default Expression which depends on time?
  #1
New Member
 
ANNONYMOUS
Join Date: Jul 2018
Location: Germany
Posts: 4
Rep Power: 7
Hemishmistry04 is on a distinguished road
Hello,

I want to make an Expression in CFX,which depends on Simulation time.

Time Duration-
Total time = 6000 [s]

Timesteps Adaption=
Maximum Timestep= _______ Expression


How can I relate both,


I have done following,


1) User Function Interpolation

MaxTotalTimeSteps

time [s] Maximum Timesteps [s]
5E-11 - 0.00075
1 - 0.00075
6 - 0.00075
8 - 0.0008
20 - 0.06

60 - 0.005


2) Expression

Expression 5 = MaxTotalTimeSteps(t)


can be seen in figure

3) Connection in Analysis Setting


Getting error


Parameter 'Maximum Timestep' in object '/FLOW:Flow Analysis 1/ANALYSIS TYPE/TIME STEPS/TIMESTEP ADAPTION' is not allowed to be assigned an expression value that depends on variables. It must be assigned a numeric value, or an expression that resolves to a constant value.




How can call this Expression in Maximum timesptes?
Attached Images
File Type: jpg 1.JPG (85.6 KB, 17 views)
File Type: jpg 2.JPG (70.4 KB, 15 views)
File Type: jpg 3.JPG (53.4 KB, 11 views)
File Type: jpg 5.JPG (14.1 KB, 11 views)
Hemishmistry04 is offline   Reply With Quote

Old   November 7, 2019, 08:53
Default
  #2
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
I think you did everything fine, it's just that...

Parameter 'Maximum Timestep' is not allowed to be assigned an expression value that depends on variables.
Hemishmistry04 likes this.
urosgrivc is offline   Reply With Quote

Old   November 7, 2019, 16:13
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Have you misunderstood the purpose of the variables on the adaptive timestepping page?

Time duration/total time = the total amount of simulated time the simulation will run for.

Timestep Adaption/Maximum Timestep = the largest time step size you allow the solver to use.

You can't change the maximum timestep during a run. If you did then what is the point of adaptive time stepping? You might as well just define the time step size yourself manually and forget about adaptive time stepping.
Hemishmistry04 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 02:05
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


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