# Boundary conditions

 Register Blogs Members List Search Today's Posts Mark Forums Read

 April 16, 2009, 00:18 Boundary conditions #1 New Member   Join Date: Apr 2009 Posts: 1 Rep Power: 0 What is the most convenient way to apply boundary conditions in a FVM code? (i.e. how commercial codes like Ansys or Fluent do this?) Until recently I used ghost cells to set boundary conditions in my program, but as I understand this is an explicit method and could lead to restrictions on the timestep. I am trying to simulate mostly diffusion driven flows near the onset of convective instability with concentration variation and thermodiffusion, so I would like to have the timestep as large as possible. Is there an implicit variant of the ghost cell method? If no, could you suggest what is the best way to proceed with the boundary conditions?

 April 18, 2009, 09:33 #2 Member   Jed Brown Join Date: Mar 2009 Posts: 56 Rep Power: 10 This actually isn't specific to FVM, but the most fundamental decision to make is whether to remove boundary dofs which are being enforced strongly. People really don't agree about this, removing the dofs makes the system slightly smaller and does not perturb the spectrum like penalty methods (which produce huge eigenvalues) and zeroing a row (which introduces additional asymmetry, perturbing eigenvalues). To leave the dofs in without messing up the spectrum, you can also zero the column. In function evaluation, zeroing the column is equivalent to correcting the boundary values before computing fluxes. In Jacobian assembly, you should remove these columns at the local level (doing columnwise operations on a global matrix in compressed row form is really expensive). Using ghost cells is fine during function evaluation. When the value in the ghost cell is filled in by extrapolation, it is equal to a linear combination of values in nearby cells. When assembling the Jacobian, you can apply this linear combination at the local level.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Anindya Main CFD Forum 24 January 11, 2012 14:40 cfdmarkus OpenFOAM Running, Solving & CFD 16 November 14, 2011 05:44 Lionel S. Main CFD Forum 1 August 24, 2007 18:03 michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15 Ahmed Abdelwahab FLUENT 4 March 9, 2000 17:36

All times are GMT -4. The time now is 16:37.