Hi Bryce,

I have also encountered this issue when setting up convection and radiation 
boundary conditions for a one-dimensional heat transfer analysis. I have 
written the following function to extrapolate the temperature at the face, feel 
free to use it if it saves you time.

def get_surface_value(T, element_size):
    '''
    Linear extrapolation of the surface temperature.

    Parameters
    ----------
    T               An array containing temperature values at the grid 
centroids.
    element_size    The width of each element

    Returns
    -------
    T_surface       The temperature at the edge of the first grid element 
(surface).
    '''

    slope = (T[0]-T[1])/element_size
    T_surface = T[0] + slope*element_size/2.   # centroid-face distance = dx/2
    return T_surface.value

Kind regards,
Conor

Conor Fleming
Graduate Mechanical Engineer, Tunnel Ventilation, Fire & Life Safety

ATKINS
Find out more about what we do and how we do it – 
www.atkinsglobal.com<http://www.atkinsglobal.com/>

The Wells, Church St, Epsom, KT17 4PF, UK | Tel:  +44 (0) 1372 754222  I  Fax: 
+44 (0) 1372 754499
Email: [email protected]<mailto:[email protected]>| 
Web: www.atkinsglobal.com<http://www.atkinsglobal.com/> |
Twitter: www.twitter.com/atkinsglobal<http://www.twitter.com/atkinsglobal> | 
Facebook: www.facebook.com/atkinsglobal<http://www.facebook.com/atkinsglobal> |
LinkedIn: 
www.linkedin.com/company/atkins<http://www.linkedin.com/company/atkins> | 
YouTube: www.youtube.com/wsatkinsplc<http://www.youtube.com/wsatkinsplc>


From: [email protected] [mailto:[email protected]] On Behalf Of Daniel 
Wheeler
Sent: 18 November 2014 21:30
To: Multiple recipients of list
Subject: Re: Incorrect Face Value for Neumann Boundaries

On Tue, Nov 18, 2014 at 2:32 PM, L.Bryce Whitson Jr. 
<[email protected]<mailto:[email protected]>> wrote:
What would be the ill effects of putting a hook in the code that would make the 
boundary values correct? It would be a simple extrapolation using half the cell 
width and the gradient in the cell.

I don't think it would be a huge issue to make it work correctly. Just a case 
of carving out some time to do it. Feel free to submit an issue outlining your 
use case, see https://github.com/usnistgov/fipy/issues.

--
Daniel Wheeler

___________________________________________________________________________
The IS team in Atkins has scanned this email and any attachments for viruses 
and other threats; however no technology can be guaranteed to detect all 
threats. Always exercise caution before acting on the content of an email and 
before opening attachments or following links contained within the email.

________________________________
This email and any attached files are confidential and copyright protected. If 
you are not the addressee, any dissemination of this communication is strictly 
prohibited. Unless otherwise expressly agreed in writing, nothing stated in 
this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in 
England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, 
Surrey KT18 5BW. A list of wholly owned Atkins Group companies registered in 
the United Kingdom and locations around the world can be found at 
http://www.atkinsglobal.com/site-services/group-company-registration-details

Consider the environment. Please don't print this e-mail unless you really need 
to.
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to