|
[Sponsors] |
Set the nonuniform boundary condition from external file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 14, 2015, 01:15 |
Set the nonuniform boundary condition from external file
|
#1 |
Member
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12 |
Hello,
The data for my nonuniform boundary condition is calculated from external program, and saved in a .dat file. Is is possible to read this data when setting nonuniform boundary conditions, just like: n0000 { type fixedGradient; gradient nonuniform List<scalar> boundary.dat } Thank you in advance. Kan |
|
September 21, 2015, 23:24 |
|
#2 |
New Member
Mitchell Baum
Join Date: Sep 2015
Location: Australia
Posts: 7
Rep Power: 11 |
Hi Kan,
I wish to also implement a non-uniform BC from a CSV file, however as a beginner in OF, I am finding it difficult to find an example of this in laymen's terms. Have you made any progress on this? Regards, Mitchell |
|
October 6, 2015, 06:09 |
|
#3 |
Member
Join Date: Sep 2014
Posts: 32
Rep Power: 12 |
Hi Mitchell,
I am also run into this kind of problem, do you have any idea now? For my purpose, I want to prescribe a Blasius solution as my boundary condition. The data can be generated by a Matlab code, and export as an external data for OpenFOAM. Then compile a utility that interpolate and map the data onto the inflow patch. But, however, this would be time consuming, since I am also beginner of OF. Do you have any better idea now? regards Yongxiang |
|
October 9, 2015, 06:29 |
|
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
This feature has been available in OF since version 2.1. Here is the link describing how to go about it: http://www.openfoam.org/version2.1.0...conditions.php If this doesn't suffice, perhaps you can look at swak4Foam as well. Hope this helps. Antimony Last edited by Antimony; October 9, 2015 at 06:31. Reason: Added in swak4Foam reference |
|
October 12, 2015, 06:02 |
|
#5 |
Member
Join Date: Sep 2014
Posts: 32
Rep Power: 12 |
Hi Antimony,
thank you very much for your quick reply. I've checked the page you suggested. And still I am not sure how should my data get prepared. For example, If I use TableFile, the indicated format for the data is: ( (0.0 (1 2 3)) (1.0 (4 5 6)) ); There is no explanation of what the scalar and vector are. I suppose the scalar to be time, and the scalar to be Velocity. For my purpose, I want to prescribe a profile, which means the coordinates are also involved. But in the above data format, no coordinates are mentioned. So Do you know what specific data format should be? Regards Yongxiang |
|
October 12, 2015, 06:33 |
|
#6 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
I guess the link that I shared was a common answer to the three queries on this thread, each of which was connected but are different. Take note that the link refers particularly to time-dependent boundary conditions. In your case, I would think something like the capabilities offered by swak4Foam would be more relevant. Here is a link to it: http://openfoamwiki.net/index.php/Contrib/swak4Foam Hope this helps Antimony P.S: Here is another post that might be relevant: http://www.cfd-online.com/Forums/ope...tml#post568000 talking about timeVaryingMappedFixedValue Last edited by Antimony; October 13, 2015 at 22:13. Reason: Added the PS |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wmake compiling new solver | mksca | OpenFOAM Programming & Development | 14 | June 22, 2018 07:29 |
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error | FerdiFuchs | OpenFOAM Community Contributions | 27 | April 16, 2014 16:14 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |