|
[Sponsors] |
June 15, 2016, 23:55 |
momentum source with udf
|
#1 |
New Member
Ahmet
Join Date: Jun 2016
Posts: 4
Rep Power: 9 |
we have unit cell, lenght of it 3.66 m and we want to define momentum source at certain intervals with udf. How would I define it.
|
|
June 16, 2016, 00:02 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
You need to build DEFINE_SOURCEs for all three momentum components. The DEFINE_SOURCE will pass the cell and thread when it is called. You can use that to look up the cell centroid with C_CENTROID(X,cell,thread) where X is real X[ND_ND]. Then you can compute the momentum sources based on position information. It is a pretty textbook application of the DEFINE_SOURCE UDF mechanism.
|
|
June 16, 2016, 00:24 |
|
#3 |
New Member
Ahmet
Join Date: Jun 2016
Posts: 4
Rep Power: 9 |
thank you Michael but I could not figure out how ı would place momentum source at 2 meters or 3 meters in udf
|
|
June 16, 2016, 00:38 |
|
#4 | |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
Quote:
DEFINE_SOURCE is one of the easiest UDFs to code. All of the parts on in the basic example in the ANSYS documentation. https://www.sharcnet.ca/Software/Flu...udf/node46.htm |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc | ofslcm | OpenFOAM Community Contributions | 25 | March 6, 2017 10:03 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 17:18 |
UDF for spatially dependent momentum source | ngallandat3 | Fluent UDF and Scheme Programming | 14 | July 27, 2014 12:21 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 01:41 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |