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

Scaling boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Nucleophobe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2013, 14:53
Default Scaling boundary conditions
  #1
Member
 
Join Date: Aug 2012
Posts: 68
Blog Entries: 1
Rep Power: 13
Nucleophobe is on a distinguished road
I have a case with non-circular inlets on which I needed to specify fully developed flow. To do so, I extruded the inlets beyond the entry length, and ran a case for each inlet to convergence. I then used the mapFields utility to map the solved velocity for the inlets onto the real case.

I would now like to scale the fully developed flow, say from 1 liter per minute to 2 liters per minute. Is there an easy way to scale my boundary conditions? My 0/U file looks like this right now:
Code:
    inlet1
    {
        type            fixedValue;
        value           nonuniform List<vector>
**binary values**
   inlet 2
   {...
I know I could code something to do this, but I'm not sure how to start with the 'U' file in half-ascii and half-binary.

Thanks,
-Nuc
immortality likes this.
Nucleophobe is offline   Reply With Quote

Old   April 15, 2013, 09:25
Default
  #2
Member
 
Join Date: Aug 2012
Posts: 68
Blog Entries: 1
Rep Power: 13
Nucleophobe is on a distinguished road
Well, I ended up doing the following:
1) Run the simulation one time step with the controlDict switched to ascii mode
2) Use find-replace in 'vim' to reduce the boundary conditions to a three-column data file
3) Use 'awk' to multiply the data in each column by a constant
4) Use 'vim' to recompose the boundary conditions as desired

It's a slow solution but it worked for me. Any further ideas for the future are appreciated.

Thanks all.
Nucleophobe 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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 12:58
inlet boundary conditions newOFuser OpenFOAM 1 January 10, 2013 08:08
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 18:29


All times are GMT -4. The time now is 09:50.