Skip to main content Accessibility help
×
Hostname: page-component-5c6d5d7d68-wbk2r Total loading time: 0 Render date: 2024-08-14T15:18:10.571Z Has data issue: false hasContentIssue false

Appendix B - 1D Conduction Code

Published online by Cambridge University Press:  05 June 2012

Anil W. Date
Affiliation:
Indian Institute of Technology
Get access

Summary

Structure of the Code

The 1D conduction code is divided into two parts:

  1. a user part containing files COM1D.FOR and USER1D.FOR and

  2. a library part containing file LIB1D.FOR.

The user part is problem dependent. Therefore, the two files in this part are used to specify the problem to be solved. In contrast, the library part is problem independent. Thus, the LIB1D.FOR file remains unaltered for all problems. In this sense, the library part may be called the solver whereas the user part may be called the pre- and postprocessor.

This structure is central to creation of a generalised code. To execute the code, USER1D.FOR and LIB1D.FOR files are compiled separately and then linked before execution. The COM1D.FOR is common to both parts and its contents are brought into each subroutine or function via the “INCLUDE” statement in FORTRAN. Variable names starting with I, J, K, L, M, and N are integers whereas all others are real by default. The list of variable names with their meanings is given in Table B.1. The listings of each file are given at the end of this appendix.

File COM1D.FOR

In this file, logical, real, and integer variables are included. The PARAMETER statement is used to specify the maximum array dimension IT and values of π, GREAT, and SMALL. The latter are frequently required for generalised coding.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2005

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • 1D Conduction Code
  • Anil W. Date, Indian Institute of Technology
  • Book: Introduction to Computational Fluid Dynamics
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511808975.012
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • 1D Conduction Code
  • Anil W. Date, Indian Institute of Technology
  • Book: Introduction to Computational Fluid Dynamics
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511808975.012
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • 1D Conduction Code
  • Anil W. Date, Indian Institute of Technology
  • Book: Introduction to Computational Fluid Dynamics
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511808975.012
Available formats
×