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

CFX Command Language to Modify Expressions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2019, 07:31
Default CFX Command Language to Modify Expressions
  #1
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
Hello everybody,

i have to use some complex expressions to specify the displacement of Moving Walls in my simulation. The displacements are large so i also have to use Remeshing during the simulation. I want to modify the expressions little bit after every Remeshing.

As an example (this is just an example expression, my displacement expressions are very complex):

At the start of simulation the expression is:

Code:
displacement = 1[m/s]*t
Now if first remeshing is occuring at t=0.003[s], then the expression should like this after 1st Remeshing:
Code:
 
 displacement = 1[m/s]*(t+0.003[s])
If second Remeshing is occuring at t=0.006[s], then the expression should look like this after 2nd Remeshing:

Code:
 
displacement =1[m/s]*(t+0.006[s])
I know CFX Command Language uses Power Syntax (Perl language) to modify the CFX setup and automise the CFD Post, but i am not sure about the expressions. Can i modify the expressions using CCL with the help of if and elseif conditions? Is it possible?
cfd seeker is offline   Reply With Quote

Old   February 4, 2019, 17:18
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
No, I don't think you can use perl in CCL for the solver. But to be sure, why not just try it with a simple example and see if it works?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   February 5, 2019, 04:20
Default
  #3
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
I already tried that but CFX is giving following error.

ccl_error.jpg
cfd seeker is offline   Reply With Quote

Old   February 5, 2019, 05:26
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
That error has nothing to do with perl in the CCL. That error is saying that the parallel mode you have asked for is not available. Either fix your setup so that mode is available or choose another parallel mode. Even better, for debugging you could use serial mode to make things as simple as possible. Only go to parallel when you need the additional computing power.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   February 6, 2019, 04:16
Default
  #5
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
I know but this occurs only when i include CCL in the run. I have tried both Serial and Parallel before the last post but it gives the error even with Serial solver. When i don't include CCL file, then this error is not there.
cfd seeker is offline   Reply With Quote

Old   February 6, 2019, 17:23
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Please post on the forum the CCL you are trying to use.
__________________
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
Modify SST kw model in CFX Tingyun YIN CFX 6 May 12, 2017 07:44
Ansys CFX Post: Evaluate Nusselt Number with Expressions Towe91 CFX 2 March 7, 2017 16:36
Transfer of Expressions from CFX to Fluent WK912 ANSYS 0 October 1, 2013 10:12
density, viscosity expressions CFX selvam2487 CFX 6 July 26, 2013 13:12
CFX Expressions lex CFX 6 January 7, 2010 09:12


All times are GMT -4. The time now is 18:56.