|
[Sponsors] |
The problem about add body force(physical external forcing)using CFX |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 16, 2020, 11:29 |
The problem about add body force(physical external forcing)using CFX
|
#1 |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 9 |
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.... |
|
January 16, 2020, 11:38 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
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 |
|
January 17, 2020, 02:31 |
|
#3 | |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 9 |
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.... |
||
January 17, 2020, 04:35 |
|
#4 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
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?
|
|
January 17, 2020, 05:16 |
|
#5 | |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 9 |
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. |
||
January 17, 2020, 06:14 |
|
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
I would like know what ANSYS says........
|
|
January 19, 2020, 23:45 |
|
#7 |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 9 |
||
January 20, 2020, 04:16 |
|
#8 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
I mean the ANSYS support help desk
|
|
Tags |
body force, cel function, cfx, momentum sources |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CGNS Compiling | Diego | Main CFD Forum | 17 | December 21, 2014 02:40 |
modeling a floating body in cfx | neda2014 | CFX | 9 | October 14, 2014 05:53 |
CFX parallel hp MPI problem | fluidmechanics | CFX | 5 | June 19, 2013 20:05 |
CFX pressure in Simulations problem | nasdak | CFX | 1 | April 14, 2010 14:22 |
CFX 4.4 installation problem | Pandu Sattvika | CFX | 1 | December 1, 2001 05:07 |