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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Daniel Tanner
Forum: Fluent UDF and Scheme Programming May 14, 2009, 16:40
Replies: 8
Views: 13,029
Posted By Daniel Tanner
Sorry if I was unclear! Firstly, you set...

Sorry if I was unclear!

Firstly, you set x[0] = 0.07 but it does not appear in your equation for the profile! If you wish to insert it then you can just insert 0.07 directly, i.e., (10*x[1])+1 is...
Forum: Fluent UDF and Scheme Programming May 13, 2009, 11:01
Replies: 8
Views: 13,029
Posted By Daniel Tanner
See the example below! This will write a profile...

See the example below! This will write a profile to the inlet face. For a velocity inlet boundary condition this is effectively setting a velocity at each inlet element as a function of the x*y*z...
Forum: Fluent UDF and Scheme Programming May 13, 2009, 10:55
Replies: 8
Views: 13,029
Posted By Daniel Tanner
Some quick observations: 1) the "int i;"...

Some quick observations:

1) the "int i;" command must come at the start with the rest of the declared variables (i.e., x, y, z ...)
2) all lines must finish with ";"
3) better to use x[0], x[1]...
Forum: Fluent UDF and Scheme Programming May 12, 2009, 16:03
Replies: 8
Views: 13,029
Posted By Daniel Tanner
The UDF looks ok, though I think you are not...

The UDF looks ok, though I think you are not understanding the UDF or "position vector" fully.
begin_f_loop(f, thread) is used to loop over every element (face) on the inflow boundary.
...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 14:49.