CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Set the nonuniform boundary condition from external file

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Antimony

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2015, 01:15
Default Set the nonuniform boundary condition from external file
  #1
Member
 
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12
nwpukaka is on a distinguished road
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
nwpukaka is offline   Reply With Quote

Old   September 21, 2015, 23:24
Default
  #2
New Member
 
Mitchell Baum
Join Date: Sep 2015
Location: Australia
Posts: 7
Rep Power: 11
Mitchell Baum is on a distinguished road
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
Mitchell Baum is offline   Reply With Quote

Old   October 6, 2015, 06:09
Default
  #3
Member
 
Join Date: Sep 2014
Posts: 32
Rep Power: 12
yongxiang is on a distinguished road
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
yongxiang is offline   Reply With Quote

Old   October 9, 2015, 06:29
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
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
nimasam likes this.

Last edited by Antimony; October 9, 2015 at 06:31. Reason: Added in swak4Foam reference
Antimony is offline   Reply With Quote

Old   October 12, 2015, 06:02
Default
  #5
Member
 
Join Date: Sep 2014
Posts: 32
Rep Power: 12
yongxiang is on a distinguished road
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
yongxiang is offline   Reply With Quote

Old   October 12, 2015, 06:33
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
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
Antimony is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 23:59.