Code construction – 4: Surface fitted coordinate for the fluid and hydrostatic eq. On top of the spherical coordinates for the field (r, ,  ), we introduce.

Slides:



Advertisements
Similar presentations
Arc-length computation and arc-length parameterization
Advertisements

A Comparison of topographic effect by Newton’s integral and high degree spherical harmonic expansion – Preliminary Results YM Wang, S. Holmes, J Saleh,
Mean Value Coordinates for Closed Triangular Meshes
The structure and evolution of stars
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
Surfaces Chiew-Lan Tai. Surfaces 2 Reading Required Hills Section Hearn & Baker, sections 8.11, 8.13 Recommended Sections 2.1.4, , 3D Computer.
Non-axisymmetric modes of differentially rotating neutron stars Andrea Passamonti Southampton, 13 December 2007 University of Southampton In collaboration.
Radial Basis Function Networks 표현아 Computer Science, KAIST.
8.3 Solving Right Triangles
Quadrature Greg Beckham. Quadrature Numerical Integration Goal is to obtain the integral with as few computations of the integrand as possible.
3. Numerical integration (Numerical quadrature) .
Chapter 10 Vector Calculus
Integration by parts Product Rule:. Integration by parts Let dv be the most complicated part of the original integrand that fits a basic integration Rule.
Solving the Poisson Integral for the gravitational potential using the convolution theorem Eduard Vorobyov Institute for Computational Astrophysics.
Short introduction for the quasi-equilibrium binary neutron star solutions. Introducing two patches of fluid coordinate grids, the initial data code can.
1 ELEC 3105 Basic EM and Power Engineering Start Solutions to Poisson’s and/or Laplace’s.
Low Speed Airfoil Design Joan Puig Project Goals ● Maximize L/D ● Easy to build ● Keep Cm at a value that is not going to make the airplane unstable.
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
Dynamical Instability of Differentially Rotating Polytropes Dept. of Earth Science & Astron., Grad. School of Arts & Sciences, Univ. of Tokyo S. Karino.
TEMPLATE DESIGN © A high-order accurate and monotonic advection scheme is used as a local interpolator to redistribute.
Code construction – 1: coordinate grid points and relating parts. Generate coordinate grid points for the spherical coordinate (r, ,  ), and tables for.
CS 121 – Quiz 3 Question 5. This question is just a different form of question four you solved at quiz 2. a) We need to use law of cosines to solve the.
Static Stellar Structure. 2 Evolutionary Changes are generally slow and can usually be handled in a quasistationary manner Evolutionary Changes are generally.
Smoothed Particle Hydrodynamics Matthew Zhu CSCI 5551 — Fall 2015.
Ship Computer Aided Design
From local to global : ray tracing with grid spacing h.
Code construction – 3: Computation of source terms. The data of source terms is prepared on grid points of the spherical coordinate (r, ,  ), and it.
CFD Exercise 1 Laminar & turbulent flows with COMSOL.
Sum and Difference Formulas. WARM-UP The expressions sin (A + B) and cos (A + B) occur frequently enough in math that it is necessary to find expressions.
Map Projections RG 620 May 16, 2014 Institute of Space Technology, Karachi RG 620 May 16, 2014 Institute of Space Technology, Karachi.
Sink particles ● Introduce sink particles whenever the density in a cell violates the Jeans criterion or and set the mass of the sink particle to: so that.
Objectives: 1.To construct all aspects of the unit circle (angles and points) 2.To use the unit circle to find the values of trig functions. Assignment:
Quantum Two 1. 2 Angular Momentum and Rotations 3.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
Trigonometry Section 7.6 Apply inverse trigonometry functions
Circles in the Coordinate Plane
Specify coordinate system on the Domain pane.
DIFFERENTIATION RULES.
ELEC 3105 Basic EM and Power Engineering
CS1550 Fundamentals For Computer Graphics Trigonometry
Transformations of the Graphs of Sine and Cosine Functions
GCSE Construction & The Built Environment
Integrals gradient.
Section 1.9 Distance and Midpoint Formulas and Circles
MM5 – Applications of Trigonometry
Universal Gravitation
Universal Gravitation
Arc Length and Curvature
Transformations of the Graphs of Sine and Cosine Functions
Chapter 23.
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Circles 4.1 (Chapter 10). Circles 4.1 (Chapter 10)
Worksheet Key 12/2/ :28 PM 13.3: The Unit Circle.
Numerical Model Atmospheres (Hubeny & Mihalas 16, 17)
Geometry Unit 12 Distance and Circles.
8.3 Trigonometric Identities (Part 1)
14.7 Triple Integrals with Cylindrical and Spherical Coordinates
Find sec 5π/4.
Section 4.2 Contour Integrals
10-7: Write and Graph Equations of Circles
topic16_cylinder_flow_relaxation
What do you do when you don’t know how to get started.
Physics 2102 Lecture: 07 WED 28 JAN
3.3 – The Unit Circle and Circular Functions
8.3 Trigonometric Identities (Part 1)
17.5 Surface Integrals of Vector Fields
CASA Day 9 May, 2006.
The structure and evolution of stars
Computer Aided Geometric Design
Fourier Analysis.
Presentation transcript:

Code construction – 4: Surface fitted coordinate for the fluid and hydrostatic eq. On top of the spherical coordinates for the field (r, ,  ), we introduce surface fitted coordinates for the fluid as follows. where R( ,  ) is the surface of a star. The surface R( ,  ) is normalized by the value at  =  /2, and  = 0. R 0 := R(  /2,  ). subroutine interpolation_grav_to_fluid , and  coordinates are the same for the field and fluid coordinates. So, an interpolation along the radial coordinate (1D interpolation) is required. It is recommended to use an interpolating formula higher than the 2 nd order. end interpolation_grav_to_fluid rg i-1 rg i r0r0 rf j-1 rf j

subroutine coordinate_patch_kit_fluid We use the same grid spacing for the fluid coordinate (r f,  f,  f ) as the coordinate grids for the gravitational field. nrf : Total number of radial grid points (-1). R( ,  ) : r f 2 [0, 1], the grid spacing rule is the same as r g. rf(ir), ir = 0, nrf : Radial coordinate grid points r i. hrf(ir) : Mid-point of radial grids. drf(ir) : Radial grid spacing  r i := r i – r i-1. Radial coordinate input parameters: nrf. (r f = r g up to r f = 1) thf(it), it = 0, ntf :  grid points  i. hthf(it) : Mid-point of  grids  i+1/2. dthf :  grid spacing   coordinate input parameter: ntf. ntf : Total number of  grid points (-1).  2 [0,  ], the grid spacing is equidistant. Functions associated with  coordinate. Trigonometric funcitons. sinthf(it), it = 0, ntf : sin  i. hsinthf(it) : sin  i+1/2 sin at mid-point of  grids. costhf(it), it = 0, ntf : cos  i. hcosthf(it) : cos  i+1/2 cosin at mid-point of  grids.

phif(ip), ip = 0, npf :  grid points  i. hphif(ip) : Mid-point of  grids  i+1/2. dphif :  grid spacing   coordinate input parameter: npf. npf : Total number of  grid points (-1).  2 [0, 2  ], the grid spacing is equidistant. Functions associated with  coordinate. Trigonometric funcitons. sinphif(ip), ip = 0, npf : sin  i. hsinphif(ip) : sin  i+1/2 sin at mid-point of  grids. cosphif(ip), ip = 0, npf : cos  i. hcosphif(ip): cos  i+1/2 cos at mid-point of  grids. Weight for the integration: assigned at the mid-points. wrf(irr) = hrf(irr) 2 drf(irr) : weight for the radial integratoin r i 2  r i wtf(itt) = hsinthef(itt) dthf : weight for the  integratoin sin  i  i wpf(ipp) = dphif : weight for the  integratoin  i wrtpf(irr,itt,ipp) = hR(itt,ipp) 3 £ wrf(irr) £ wtf(itt) £ wpf(ipp) end subroutine coordinate_patch_kit_fluid hR(itt,ipp) is the radius of the stellar surface at the mid-points of ( ,  ) grids. That is, at hth(itt), and hphi(ipp).

subroutine rotating_compact_star call interpolation_grav_to_fluid Interpolate which are used to compute u t. call hydrostatic_equation call update_matter call update_surface Same as the gravitational field (a different value for might make a convergence faster.) call update_parameter end subroutine rotating_compact_star

Recall: polytropic (adiabatic) EOS.

subroutine update_parameter Same as the Newtonian calculation, we have three parameters, Three conditions are imposed at the center, and two points at the surface. When the length scale is updated from R i to R 0, the lapse and the conformal factor changes as, end subroutine update_parameter (When an iteration is made, the physical size of a star may change. While in numerical computation, we normalize the size (to set R(  /2,0)=1) and update the length scale R 0.) Three conditions h=h c at the center, h=1 at R eq and R p, are applied to and solved for the parameters.