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

How to use the CFX periodic interface

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2017, 23:50
Default How to use the CFX periodic interface
  #1
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Recently I use the CFX software to simulation a rectangle channel ,I need to use a periodic condition,I see that we can use a periodic inteface ,but when I use that condition, I find I cannot define the same position to a velocity inlet, I ant to ask you how can I deal with it ?Thank you very much.
TheVictorVS likes this.
zhihuawan is offline   Reply With Quote

Old   December 5, 2017, 13:55
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
Define the same position to a velocity inlet?
Just define total mass flow instead. it will calculate the non uniform velocity at the interface. If you are specifying velocity, it isn't periodic, you would just be specifying it at the inlet and outlet.
evcelica is offline   Reply With Quote

Old   December 11, 2017, 10:29
Default but in my situation ,the university is not uniform,how to solve it
  #3
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by evcelica View Post
Define the same position to a velocity inlet?
Just define total mass flow instead. it will calculate the non uniform velocity at the interface. If you are specifying velocity, it isn't periodic, you would just be specifying it at the inlet and outlet.
Think you for your reply ,but in my situation ,the university is not uniform,how to solve it ,I know we can use a expression for the mass flow,but I do not how to make CEL expression, can you help me?
zhihuawan is offline   Reply With Quote

Old   December 11, 2017, 18:31
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
There are many examples of CEL expressions in the CFX tutorials. You can get them from the ANSYS Customer webpage.
ghorrocks is offline   Reply With Quote

Old   December 12, 2017, 10:38
Default do you know how to build a segmentation cel expression?
  #5
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
There are many examples of CEL expressions in the CFX tutorials. You can get them from the ANSYS Customer webpage.
do you know how to build a segmentation cel expression?
zhihuawan is offline   Reply With Quote

Old   December 12, 2017, 22:07
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
What is a segmentation CEL expression?
ghorrocks is offline   Reply With Quote

Old   December 14, 2017, 00:41
Default [QUOTE=ghorrocks;674904]What is a segmentation CEL expression?[/QUOTE]
  #7
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
What is a segmentation CEL expression?
I mean I do not know how to build a cel expression ,in the fluent ,we can use the text to build a udf ,and then change the suffix to" .c", when I try to do this way ,and choose to change the suffix to ".cll", I cannot to import this document into the CFX pre ,can you tell me how can I do it ?Thank you for your pleasure.
zhihuawan is offline   Reply With Quote

Old   December 14, 2017, 00:43
Default how to build a cel expression in CFX?
  #8
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
how to build a cel expression ,in the fluent ,we can use the text to build a udf ,and then change the suffix to" .c", when I try to do this way ,and choose to change the suffix to ".cll", I cannot to import this document into the CFX pre ,can you tell me how can I do it ?Thank you for your pleasure.
zhihuawan is offline   Reply With Quote

Old   December 14, 2017, 01:14
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
In CFX you do not need a separate file to define expressions. You can define them directly in CFX-Pre using the CEL (CFX Expression Language), and they are part of the CCL.

Many of the CFX examples use CEL expressions. I REALLY recommend you look at the CFX tutorials, as I recommended in post #4.
ghorrocks is offline   Reply With Quote

Old   December 14, 2017, 05:01
Default [QUOTE=ghorrocks;675050]In CFX you do not need a separate file to define expressions.
  #10
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
In CFX you do not need a separate file to define expressions. You can define them directly in CFX-Pre using the CEL (CFX Expression Language), and they are part of the CCL.

Many of the CFX examples use CEL expressions. I REALLY recommend you look at the CFX tutorials, as I recommended in post #4.

Thank you very much for your reply,I have tried to do as you say ,but the condition expression is not a constant value, in my situlation, I use a translational periodocity interface model, and I choose a mass flow rate model to describe the boundary,but my mass flow m=if(y<0.0009,y/0.0009[m]*0.09[kg s^-1],0[kg s^-1]),when I choose this expression to the cfx-pre,it will give a error as this: The parameter 'Mass flow rate 'in object 'flow :flow analysis 1/domain interface:domain interface 1/interface models /mass and momentum/momentum interface model' is defined to be 'single valued 'but it depends on the following field valued variables:y.Because I cannot put the image into the forum,if you are convinent ,I can send to your e-mail or we-chat.
I think we should use a separate file to define the .ccl file,now I am reading the CFX tutorials,but it is difficult to understand some terminology,such as what is "single valued".Thanks for your reply.
zhihuawan is offline   Reply With Quote

Old   December 14, 2017, 06:09
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Single valued means that the mass flow rate is a single value, such as 1 kg/s. You have defined a function where the mass flow rate is a function of position. This does not make sense as the mass flow rate is the integral of the velocity and density over the inlet - how can the integral be one value above y=0.0009 and another below?

What you should do is put a wall at your inlet and outlet to cover the section which has no flow, and use a normal translational periodic boundary with a defined flow rate for the remainder.
ghorrocks is offline   Reply With Quote

Old   December 14, 2017, 08:58
Default
  #12
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Single valued means that the mass flow rate is a single value, such as 1 kg/s. You have defined a function where the mass flow rate is a function of position. This does not make sense as the mass flow rate is the integral of the velocity and density over the inlet - how can the integral be one value above y=0.0009 and another below?

What you should do is put a wall at your inlet and outlet to cover the section which has no flow, and use a normal translational periodic boundary with a defined flow rate for the remainder.

You may not know my research object,my object is a verticle rectangle ,and two fluid such as water and air come in one side,and the water is falling film on the wall,the water film thickness is 0.9mm,the wide of this channel is 3.6mm,so there exists only water below the 0.9mm.and because of that the water velocity is parabolic,so the mass flow varies with the y position .So I should use the ccl. to define the mass flow for the normal translational periodic boundary.I am looking for your reply.
zhihuawan is offline   Reply With Quote

Old   December 14, 2017, 09:07
Default [QUOTE=evcelica;674026]Define the same position to a velocity inlet? Just define t
  #13
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by evcelica View Post
Define the same position to a velocity inlet?
Just define total mass flow instead. it will calculate the non uniform velocity at the interface. If you are specifying velocity, it isn't periodic, you would just be specifying it at the inlet and outlet.
In the inlet ,I have two phase, one is water film ,other is air ,how can I give this mass inlet,thank you for your reply.
zhihuawan is offline   Reply With Quote

Old   December 14, 2017, 19:54
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can you post an image of what you are modelling? Please show the geometry and the expected fluid flow.
ghorrocks is offline   Reply With Quote

Old   December 14, 2017, 21:21
Default [QUOTE=ghorrocks;675162]Can you post an image of what you are modelling? Please show
  #15
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Can you post an image of what you are modelling? Please show the geometry and the expected fluid flow.


I have submit the image to the internet ,can you see it ?if you can not ,I can send to your e-mail.
zhihuawan is offline   Reply With Quote

Old   December 15, 2017, 01:41
Default
  #16
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
How do I post an image on the forum? FAQ: https://www.cfd-online.com/Wiki/Ansy...n_the_forum.3F
ghorrocks is offline   Reply With Quote

Old   December 15, 2017, 21:23
Default [QUOTE=ghorrocks;675184]How do I post an image on the forum? FAQ: [url]https://www.cf
  #17
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
How do I post an image on the forum? FAQ: https://www.cfd-online.com/Wiki/Ansy...n_the_forum.3F
region.jpg

If three-dimensional simulation takes the whole flow region as the computational domain, it will lead to a considerable computational cost. This study applies periodic boundary conditions tsimulate the fully developed film flow in a relatively short domain(150δ*4δ*150δ) which is shown in the figure.In my simulation,the water film thickness is 0.9mm(δ=0.9mm,the blue region represents the water film ,the white region represents the air),the wide of this channel is 3.6mm,so there exists only water below the 0.9mm.The domain contains thin film on a flat plate with air on the top of it. The calculation domain is long enough for one wave length based on the experimental measurement. Boundary A, B and C, D are set as periodic boundary conditions. Boundary E is set as no slip wall. Boundary F is set as opening pressure boundary. The initial conditions of the film thickness and velocity are evaluated by Nusselt theory (whose velocity is parabolic). It is worth mentioning that the choices of the size of the computational domain and the boundary conditions are both based on the film flow characteristics and adequate verification work.Maybe you understand my object ,now I can not solve how to give the variable mass flow condition and periodic conditon ,I am looking for your reply.
.I am looking for your reply.
zhihuawan is offline   Reply With Quote

Old   December 15, 2017, 21:43
Default
  #18
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by zhihuawan View Post
Attachment 60254

If three-dimensional simulation takes the whole flow region as the computational domain, it will lead to a considerable computational cost. This study applies periodic boundary conditions tsimulate the fully developed film flow in a relatively short domain(150δ*4δ*150δ) which is shown in the figure.In my simulation,the water film thickness is 0.9mm(δ=0.9mm,the blue region represents the water film ,the white region represents the air),the wide of this channel is 3.6mm,so there exists only water below the 0.9mm.The domain contains thin film on a flat plate with air on the top of it. The calculation domain is long enough for one wave length based on the experimental measurement. Boundary A, B and C, D are set as periodic boundary conditions. Boundary E is set as no slip wall. Boundary F is set as opening pressure boundary. The initial conditions of the film thickness and velocity are evaluated by Nusselt theory (whose velocity is parabolic). It is worth mentioning that the choices of the size of the computational domain and the boundary conditions are both based on the film flow characteristics and adequate verification work.Maybe you understand my object ,now I can not solve how to give the variable mass flow condition and periodic conditon ,I am looking for your reply.
.I am looking for your reply.
velocity.jpg
This is the Nusselt theory velocity for the liquid film.
zhihuawan is offline   Reply With Quote

Old   December 16, 2017, 07:24
Default
  #19
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I see no reason why the normal, default translational periodic boundaries would not work. For a translational periodic boundary you do not need to define anything - the flow out the exit side just becomes the flow in the inlet side. You do not need to modify anything.

So just use default translational periodic boundaries. The solver will work out the velocity profile and free surface height which will result in fully developed flow.
ghorrocks is offline   Reply With Quote

Old   December 16, 2017, 11:00
Default [QUOTE=ghorrocks;675330]I see no reason why the normal, default translational periodi
  #20
Member
 
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 8
zhihuawan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I see no reason why the normal, default translational periodic boundaries would not work. For a translational periodic boundary you do not need to define anything - the flow out the exit side just becomes the flow in the inlet side. You do not need to modify anything.

So just use default translational periodic boundaries. The solver will work out the velocity profile and free surface height which will result in fully developed flow.
I know it can work,but the translational periodic boundary default give a constant mss flow condition,but in this matter,I need a mass flow varying with the position,but I do not how to solve it .I am trying to give a expression,but it will give a error as I last said.
zhihuawan is offline   Reply With Quote

Reply

Tags
cfx, interface, periodic, translational


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
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 11:20
Radiation interface hinca CFX 15 January 26, 2014 18:11
Confused about periodic interface Jeff STAR-CCM+ 3 August 15, 2012 23:30
CFX Solver Memory Error mike CFX 1 March 19, 2008 08:22
Periodic Interface Magnoli CFX 0 November 7, 2007 08:51


All times are GMT -4. The time now is 17:46.