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

mapped boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2004, 04:28
Default mapped boundary condition
  #1
john
Guest
 
Posts: n/a
Hi,

I want to use mapped boundary conditions in my model. Problem is like this........ I have a very big domain, but I can not neglect small features also. So I am doing analysis on coarse mesh and finalizing flow field. Then I am taking small regions of that domain and refining the mesh. So in that small subdomain I want to give mapped BCs obtained from analysis of big (full)domain. But I am confused how to give such BCs. Kindly guide.
  Reply With Quote

Old   May 12, 2004, 09:45
Default Re: mapped boundary condition
  #2
JBS
Guest
 
Posts: n/a
Basic idea is to SMAP the solution from the coarse mesh onto the finer mesh. Then restart the finer model (set boundary condition only to prevent errors) with 0 iterations. This will force a pst file to be written without any calculation. "print cset" the values of interest at your new boundary cells to seperate files. Then use BCDEFx user-subroutines that enable you to get a connection between boundary number and prostar cell number. Use Fortran "save" command to set a flag when files are read in. Use this flag to ensure that files are only read once for reduced i/o.

allthough not detailed - hope this helps, JBS
  Reply With Quote

Old   May 14, 2004, 01:04
Default Re: mapped boundary condition
  #3
john
Guest
 
Posts: n/a
Thanks jbs.

But I did not understand how to use fortran save command. I got your message of getting BCs for news model. Although I have not yet tried.... will it set the velocity, temperature and pressure field at boundaries?

Thanks again
  Reply With Quote

Old   May 14, 2004, 04:41
Default Re: mapped boundary condition
  #4
JBS
Guest
 
Posts: n/a
Hi John,

the fortran "save" command will store the value of a variable set in a subroutine. you can set a variable (say iFlag)the first time the subroutine is called to a value say "1" (normally intitialised to zero) then the next time the subroutine is called the value will still be "1". you should do the same to your boundary values. this way you can load the files containig your BCs and store them in an array. After that, set the flag to prevent reloading the files. otherwise you would read them every ieration times number of boundaries. of course there are other methods (for example based on subroutine initfi and common blocks)

subroutine xyz data iopen / 0 / save iopen iopen=iopen+1 if (iopen .eq. 1) then write(*,*) 'this is the first time' end if end

greetings
  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
Interpolation (Number of mapped nodes) Sam CFX 3 January 6, 2008 19:51
Boundary condition of the third kind or Danckwertz boundary condition plage OpenFOAM Running, Solving & CFD 4 October 3, 2006 12:21
Slip Boundary Condition for Moving Boundary Shukla Main CFD Forum 3 November 11, 2005 15:02
Plotting ribbons with mapped velocity magnitude Ulf Siemens 1 July 30, 2004 08:00


All times are GMT -4. The time now is 06:11.