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

derivative in CEL expressions

Register Blogs Community New Posts Updated Threads Search

Like Tree20Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2011, 06:21
Default
  #41
New Member
 
Join Date: Sep 2011
Posts: 8
Rep Power: 15
Hemo is on a distinguished road
Sorry Marjan, that's about the limit of my knowledge on the subject. Let us know if you find a solution!
Hemo is offline   Reply With Quote

Old   March 15, 2012, 03:58
Default
  #42
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 16
happy is on a distinguished road
Quote:
Originally Posted by singer1812 View Post
No need to use user Fortran. As an example, edit the additional variable in your LIBRARY with the update loop as follows:

ADDITIONAL VARIABLE: OldVel
Option = Definition
Tensor Type = SCALAR
Units = [m s^-1]
Variable Type = Specific
Update Loop = TRANS_LOOP
END

You can then use this to create your derivative.
does any one help me understand how the
Update Loop = TRANS_LOOP]

added to additional variable commands??
need more explaintions please, ASAP
happy is offline   Reply With Quote

Old   April 5, 2012, 04:08
Default
  #43
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 16
happy is on a distinguished road
Quote:
Originally Posted by happy View Post
does any one help me understand how the
Update Loop = TRANS_LOOP]

added to additional variable commands??
need more explaintions please, ASAP
No one can help you happy!!!
happy is offline   Reply With Quote

Old   April 5, 2012, 09:51
Default
  #44
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
singer1812 is on a distinguished road
What do you want to know?
singer1812 is offline   Reply With Quote

Old   April 6, 2012, 02:27
Default how I can add update loop into my AV?&How we apply derivative at B.Cs
  #45
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 16
happy is on a distinguished road
Quote:
Originally Posted by happy View Post
does any one help me understand how the
Update Loop = TRANS_LOOP]

added to additional variable commands??
need more explaintions please, ASAP
first, how I can add update loop into my AV. I've tried using comand editor, but when I open it again, I found it is gone!!!. After you show me how it is done. How I can use AV to create derivative - is that by cel expression?

Quote:
Originally Posted by singer1812 View Post
What do you want to know?
Hi singer 1812
Actually, I would like to apply derivative w. r. t. distance at my b.Cs for u, v,w,E, and K. So does I can apply that using your advices into this thread? if so, how we can handle this without using user fortran into CFX solver?

Thanks in advance
happy is offline   Reply With Quote

Old   April 6, 2012, 10:11
Default
  #46
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
singer1812 is on a distinguished road
You are trying to get d/dx not d/dt?

You dont need this method (update loop) to do that, that data is in already in solution.
singer1812 is offline   Reply With Quote

Old   April 8, 2012, 19:51
Default yes as you said
  #47
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 16
happy is on a distinguished road
Quote:
Originally Posted by singer1812 View Post
You are trying to get d/dx not d/dt?
yes, I need d/dx and not d/dt so which way I should follow, plz?
Regards
happy is offline   Reply With Quote

Old   April 9, 2012, 01:13
Default misunderstand me
  #48
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 16
happy is on a distinguished road
Quote:
Originally Posted by singer1812 View Post
You dont need this method (update loop) to do that, that data is in already in solution.
Hi again
Actually U misunderstand me because you talked about d /dx,y,z into post stage but what I'm looking for is set d../dx, d../dy &d../dz=0 at the boundary consitions (outlets) into set up stage.
any input can help
Regards
happy is offline   Reply With Quote

Old   April 9, 2012, 09:57
Default
  #49
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
singer1812 is on a distinguished road
Dont need transloop. Just setup a CEL expression for the derivative and put it into the BC under flow direction.
singer1812 is offline   Reply With Quote

Old   April 9, 2012, 10:02
Default
  #50
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
singer1812 is on a distinguished road
Ahh, I didnt read your message carefully enough. You need it on the outlet.

To what purpose are you forcing the derivatives on the outlet?
singer1812 is offline   Reply With Quote

Old   April 9, 2012, 22:10
Default my model
  #51
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 16
happy is on a distinguished road
Quote:
Originally Posted by singer1812 View Post
Ahh, I didnt read your message carefully enough. You need it on the outlet.

To what purpose are you forcing the derivatives on the outlet?
I would like to represent the forced plume that its source elevated on the ground into large surroundinf fluid domain. I tried using many BCs but I found 3 journal article used Neumann conditions at the top domain. Actually all the 3 articles did not use ready software solver like CFX or Fluin but they had used their own code. So I want to apply neumann condition for my problem and does not matter if the boundary is outlet or openning. so is this possible through CFX.
Any input can help.

regards
happy is offline   Reply With Quote

Old   April 9, 2012, 22:17
Question how I input my neumann BC through flow dirrection
  #52
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 16
happy is on a distinguished road
Quote:
Originally Posted by singer1812 View Post
Dont need transloop. Just setup a CEL expression for the derivative and put it into the BC under flow direction.
the flow direction is available only with opening boundary condition. However, whan I choose the cartesian components that means provide distance (m) and not dv/dx (s^-1). Is it correct?
Regards
happy is offline   Reply With Quote

Old   April 10, 2012, 10:50
Default
  #53
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
singer1812 is on a distinguished road
I dont understand why you are trying to force an outlet to have a certain gradient. Is this purely to match something in liturature?

The opening will only apply those conditions to the flow coming into the domain, not the flow leaving it. The conditions of the flow leaving the domain are a function of what takes place inside.

If you need the gradient to be zero wrt the boundary, use a symmetry BC. If it is non zero, I think you will need to use User Fortran to enforce that.
happy likes this.
singer1812 is offline   Reply With Quote

Old   April 11, 2012, 23:20
Default
  #54
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 16
happy is on a distinguished road
Quote:
Originally Posted by singer1812 View Post
I dont understand why you are trying to force an outlet to have a certain gradient. Is this purely to match something in liturature?

The opening will only apply those conditions to the flow coming into the domain, not the flow leaving it. The conditions of the flow leaving the domain are a function of what takes place inside.

If you need the gradient to be zero wrt the boundary, use a symmetry BC. If it is non zero, I think you will need to use User Fortran to enforce that.
Thanks singer1812 for your input
If I required any further recomments I will reask you
happy is offline   Reply With Quote

Old   April 12, 2012, 05:19
Smile
  #55
New Member
 
lihui
Join Date: Jun 2010
Posts: 12
Rep Power: 16
lihui54312 is on a distinguished road
Quote:
Originally Posted by singer1812 View Post
You are getting it from a fortran routine that you are calling while CFX is running (User Fortran?)

Or are you getting it from a pre-ran fortran routine, and delta_velocity is already set for the CFX run.
This method is right, frist you must run the fortan in your computer.
lihui54312 is offline   Reply With Quote

Old   July 14, 2014, 19:06
Default TRANS_LOOP operations
  #56
Disabled
 
Join Date: Feb 2013
Posts: 16
Rep Power: 13
anon_f is on a distinguished road
Hello,

I am tring to use the TRANS_LOOP operation to solve the following equation in a CFX Domain:
XX=1-(1/((1-XXold)^-a+B*exp(-C/(D*T[K]))*F*n))^a

I am doing the following steps:

· Create an additional variable XX which is defined by the expression :
XX value: 1-(1/((1-XXold)^-a+B*exp(-C/(D*T[K]))*F*n))^a The variable is function of temperature.

· Create another additional variable XXold which defined by the expression:
XXold value: ave(XXold)@domain+XX()@domain*Time Step Size.

· Initially, I run a simulation with initial values in Additional Variable Models XX=0 and XXold=0. But when I set for each variable its CEL expression I am getting this following message:

"Bad expression value 'XXold val' detected in parameter 'Additional Variable Value' in object '/FLOW:Flow Analysis 1/DOMAIN:domain/SOLID MODELS/ADDITIONAL VARIABLE:XXold'.
CEL error:
The following unrecognised name was referenced: XX."


Is there anyone who can help me to overcome this problem please?

Thank you in advance for your advices and suggestions
anon_f is offline   Reply With Quote

Old   July 15, 2014, 09:37
Default
  #57
Disabled
 
Join Date: Feb 2013
Posts: 16
Rep Power: 13
anon_f is on a distinguished road
Hello,

I am tring to use the TRANS_LOOP operation to solve the following equation in a CFX Domain:
XX=1-(1/((1-XXold)^-a+B*exp(-C/(D*T[K]))*F*n))^a

I am doing the following steps:

· Create an additional variable XX which is defined by the expression :
XX value: 1-(1/((1-XXold)^-a+B*exp(-C/(D*T[K]))*F*n))^a The variable is function of temperature.

· Create another additional variable XXold which defined by the expression:
XXold value: ave(XXold)@domain+XX()@domain*Time Step Size.
LIBRARY:
&replace ADDITIONAL VARIABLE: XXold
Option = Definition
Tensor Type = SCALAR
Units = [ ]
Update Loop = TRANS_LOOP
Variable Type = Specific
END
END
· Initially, I run a simulation with initial values in Additional Variable Models XX=0 and XXold=0. But when I set for each variable its CEL expression I am getting this following message:

"Bad expression value 'XXold val' detected in parameter 'Additional Variable Value' in object '/FLOW:Flow Analysis 1/DOMAIN:domain/SOLID MODELS/ADDITIONAL VARIABLE:XXold'.
CEL error:
The following unrecognised name was referenced: XX."


Is there anyone who can help me to overcome this problem please?

Thank you in advance for your advices and suggestions
anon_f is offline   Reply With Quote

Old   July 15, 2014, 18:48
Default
  #58
New Member
 
Join Date: Sep 2011
Posts: 8
Rep Power: 15
Hemo is on a distinguished road
Hi emotep, I could be wrong, but on first glance, you have ave(XXold) and XX().

I think the issue amy be here.......
Hemo is offline   Reply With Quote

Old   July 15, 2014, 22:17
Default
  #59
Disabled
 
Join Date: Feb 2013
Posts: 16
Rep Power: 13
anon_f is on a distinguished road
what do you suggest me. I am not using a variable such MASSFLOW or velocity for the variable I want to calculate. It is in fact independent. To calculate this I have already set an additional variable and express a CEL.
Thank you for your answer
anon_f is offline   Reply With Quote

Old   July 17, 2014, 00:31
Default
  #60
New Member
 
Join Date: Oct 2012
Posts: 8
Rep Power: 14
cfdonlineuser is on a distinguished road
this is covered here: http://www.edr.no/blogg/ansys_blogge...rations_in_cfx
cfdonlineuser 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
Cel expressions RAMAN6089 CFX 13 December 1, 2009 00:17
junction box routine and CEL function bornspur CFX 2 February 3, 2009 03:24
Cel expressions for trasient problem Jervds CFX 0 March 4, 2008 11:03
Cel expressions Time dependent Juan Maria Campos CFX 8 December 27, 2007 19:16
CEL Expressions Nick CFX 3 September 25, 2007 15:54


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