|
[Sponsors] |
The problem about add body force(physical external forcing)using CFX |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 7 ![]() |
Hi
I'm trying to add a body force to momentum source through CFX. I have a constant body force f(fx fy 0) which Located in a specific area(such as x1<x<x2,y1<y<y2). I want to add them to the momentum equation.I have added only one direction body force(X or Y,but not all)to Subdomain Source form with User CEL function and Routine in CFX successfully. PHP Code:
(1)this work done successfully,these Functions from the same Routine. ![]() (2)this work can't run ![]() Unfortunately,I got error message.Notice that the Function 1 and 2 from two Routines,because i need two kinds of return Values. ![]() 1.If there are any mistakes in what I have finished(add one dirction body force)? 2.What is the reason for this mistake? 3.How to add different direction momentum source at same time? Appreciate your response.... |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,664
Rep Power: 29 ![]() |
You have shown the UserFortran code, but not the context on how it is used.
Please show how it is accessed in the setup, i.e. MOMENTUM SOURCE: Option = Cartesian Components X Component = Y Component = Z Component = END |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 7 ![]() |
Quote:
this UserFortran code is used to define one User Routine whose Option is User CEL Function, in CFX Pre.The Function which has three Arguments and onlu one return variavle is defined as below,for this routine structure of User CEL Functions only have one renturn variable : ![]() So do you have some suggestions.... |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,711
Rep Power: 25 ![]() |
Are you convinced that function 2 is working properly? Did you for example try running only function 2? Or using functions 2 twice, for x and y component?
|
|
![]() |
![]() |
![]() |
![]() |
#5 | |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 7 ![]() |
Quote:
I guess the reason for error is the two User Function for X and Y component come from two different User Routines, and CFX need to call two different User CEL Function Routines(Both of these two Routines can run independently,and the Structure of Routines same as the first Fig) .This means CFX call the Function using the same Routine(only one) for x and y component, It can run. |
||
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,711
Rep Power: 25 ![]() |
I would like know what ANSYS says........
|
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 7 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,711
Rep Power: 25 ![]() |
I mean the ANSYS support help desk
|
|
![]() |
![]() |
![]() |
Tags |
body force, cel function, cfx, momentum sources |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CGNS Compiling | Diego | Main CFD Forum | 17 | December 21, 2014 01:40 |
modeling a floating body in cfx | neda2014 | CFX | 9 | October 14, 2014 04:53 |
CFX parallel hp MPI problem | fluidmechanics | CFX | 5 | June 19, 2013 19:05 |
CFX pressure in Simulations problem | nasdak | CFX | 1 | April 14, 2010 13:22 |
CFX 4.4 installation problem | Pandu Sattvika | CFX | 1 | December 1, 2001 04:07 |