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

problem with defining expression

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2018, 21:47
Default problem with defining expression
  #1
Member
 
Hamda
Join Date: Jul 2018
Posts: 80
Rep Power: 7
Hamda is on a distinguished road
Hi,
I want to define the following equation for energy source:
410040 [W m^-3]*((t^-0.0639 )- (35424000+t)^-0.0639)

My problem is that since CFX is so sensitive to dimension I have to rewrite the equation like this:
410040 [W m^-3 s^0.0639]*((t^-0.0639 )- (35424000[s]+t)^-0.0639)
But I still can't run and get error.

It should be mentioned that in the equation, time is considered without dimension. I mean in the equation just the magnitude of time is important.

I got these messages:
In Analysis 'Flow Analysis 1' - Domain 'Solid': Transient analyses require that initial conditions are specified unless an Initial Values file is specified at run-time.
In Analysis 'Flow Analysis 1' - Output Control: No intermediate transient results files have been defined.
Hamda is offline   Reply With Quote

Old   December 11, 2018, 23:39
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Don't use the variable "t" as your non-dimensional time. It is already defined as the normal dimensional time so you are clashing with that variable definition. Give it a unique name.

Your error messages say nothing about that CEL expression. They are talking about a missing initial condition and transient results files.
Hamda 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

Old   December 12, 2018, 06:35
Default
  #3
Member
 
Hamda
Join Date: Jul 2018
Posts: 80
Rep Power: 7
Hamda is on a distinguished road
Thank you for swift reply.
I think I should do that and give another name. But there is a problem here. I want to do a transient simulation and so energy should be defined as a function of time.

Yes the error is not related to CEL. I solved it by specifying initial values.



Many thanks
Hamda is offline   Reply With Quote

Old   December 12, 2018, 16:45
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can use your function, you just have to give your time variable a unique name. Something like "NonDimensionalTime" is a good choice, but you can call it "safgxxzasgasdfg" if you like. Anything which does not clash with existing variable names.
__________________
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
"if" expression problem CutyTeemo CFX 5 May 15, 2018 17:36
[swak4Foam] Need to use gravity field for defining the expression in swakFunction Esmaeelef OpenFOAM Community Contributions 5 May 1, 2017 17:01
Defining contact regions in FSI problem.!!! sreemvlk ANSYS 0 June 12, 2014 00:33
Problem in defining patch deformation paul b OpenFOAM Programming & Development 3 April 27, 2010 00:31
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 17:23


All times are GMT -4. The time now is 08:26.