|
[Sponsors] |
December 11, 2018, 22:47 |
problem with defining expression
|
#1 |
Member
Hamda
Join Date: Jul 2018
Posts: 80
Rep Power: 8 |
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. |
|
December 12, 2018, 00:39 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
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.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
December 12, 2018, 07:35 |
|
#3 |
Member
Hamda
Join Date: Jul 2018
Posts: 80
Rep Power: 8 |
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 |
|
December 12, 2018, 17:45 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"if" expression problem | CutyTeemo | CFX | 5 | May 15, 2018 18:36 |
[swak4Foam] Need to use gravity field for defining the expression in swakFunction | Esmaeelef | OpenFOAM Community Contributions | 5 | May 1, 2017 18:01 |
Defining contact regions in FSI problem.!!! | sreemvlk | ANSYS | 0 | June 12, 2014 01:33 |
Problem in defining patch deformation | paul b | OpenFOAM Programming & Development | 3 | April 27, 2010 01:31 |
Lift, Drag Vs time chart,calculations | Jamesd69climber | CFX | 8 | February 17, 2005 18:23 |