Skip to content

Commit

Permalink
Correcting some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
horvatm committed Oct 18, 2024
1 parent dd8ea7d commit a9d25a1
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 33 deletions.
10 changes: 5 additions & 5 deletions phoebe/lib/bodies.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

/*
Examples of implicitely defined closed and connected surfaces in 3D
using standard Euclidian coordinate system (x,y,z).
Examples of implicitly defined closed and connected surfaces in 3D
using standard Euclidean coordinate system (x,y,z).
The gradient should be outward from the surface, but it is not
an requirement.
Expand All @@ -26,7 +26,7 @@
(x^2 + y^2 + z^2 + R^2 - A^2)^2 - 4 R^2 (x^2 + y^2) = 0
Explicitely it is defined as
Explicitly it is defined as
[x,y,z] = R_z(phi_1) [R + A cos(phi_2), 0, A cos(phi_2) ]
Expand Down Expand Up @@ -777,7 +777,7 @@ struct Tmisaligned_rot_star {


/* ===================================================================
Generalizd Roche potential with misaligned binary system in rotated
Generalized Roche potential with misaligned binary system in rotated
coordinate system.
Defined of implicitly by a constrain
Expand Down Expand Up @@ -982,7 +982,7 @@ struct Tmisaligned_rotated_roche {


/* ===================================================================
Generalizd Roche potential with misaligned binary system in canonical
Generalized Roche potential with misaligned binary system in canonical
coordinate system.
Defined of implicitly by a constrain
Expand Down
4 changes: 2 additions & 2 deletions phoebe/lib/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/*
String hashing for fast switching based on string argument.
Implemenation of FNV (Fowler–Noll–Vo hash)-1a hash based on the references.
Implementation of FNV (Fowler–Noll–Vo hash)-1a hash based on the references.
Author: Martin Horvat, August 2016
Expand Down Expand Up @@ -65,7 +65,7 @@ constexpr unsigned long long operator "" _hash64(char const* p, size_t)


/* ====================================================================
Hasking into 32bit integer
Hashing into 32bit integer
======================================================================*/
namespace fnv1a_32 {

Expand Down
2 changes: 1 addition & 1 deletion phoebe/lib/ld_models.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
* Claret, A., 2000, A&A, 363, 1081
* Kallrath, Josef, Milone, Eugene F., Eclipsing Binary Stars: Modeling and Analysis (Spinger Verlag, 2009)
* Kallrath, Josef, Milone, Eugene F., Eclipsing Binary Stars: Modeling and Analysis (Springer Verlag, 2009)
* A. Claret, On the irradiated stellar atmospheres in close binary systems: Improvements and uncertainties, A&A 422, 665–673 (2004) DOI: 10.1051/0004-6361:20047056
*/
Expand Down
2 changes: 1 addition & 1 deletion phoebe/lib/libphoebe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Python C-api:
* https://docs.python.org/2/c-api/index.html
Numpi C-api manual:
Numpy C-api manual:
* http://docs.scipy.org/doc/numpy/reference/c-api.html
* http://www.scipy-lectures.org/advanced/interfacing_with_c/interfacing_with_c.html
* http://scipy.github.io/old-wiki/pages/Cookbook/C_Extensions/NumPy_arrays
Expand Down
2 changes: 1 addition & 1 deletion phoebe/lib/misaligned_roche.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
q - mass ratio M2/M1 > 0
F - synchronicity parameter in R
delta - separation between the two objects > 0
theta' - angle between z axis in spin of the object in [0, pi]
theta' - angle between z axis and spin of the object in [0, pi]
spin in plane (x, z)
Author: Martin Horvat, December 2016
Expand Down
18 changes: 9 additions & 9 deletions phoebe/lib/redistribution.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void calc_directions(
V - vector of vertices
Output:
R - radious of the sphere
R - radius of the sphere
x - center of the sphere
Return:
Expand Down Expand Up @@ -725,12 +725,12 @@ class Tredistribution{
Dmat - redistribution matrices
R - vector of albedo/reflection of triangles/of vertices
F0 - vector of intrisic radiant exitance of triangles/of vertices
F0 - vector of intrinsic radiant exitance of triangles/of vertices
epsF - relative precision of radiosity
max_iter - maximal number of iterations
Output:
F1 - updated vector of intrisic radiant exitance of triangles/of vertices
F1 - updated vector of intrinsic radiant exitance of triangles/of vertices
Fout - vector of radiosity (intrinsic and reflection) of triangles/of vertices
Returns:
Expand Down Expand Up @@ -834,12 +834,12 @@ void solve_radiosity_equation_with_redistribution_Wilson(
Dmat - matrix of redistribution view factor
R - vector of albedo/reflection of triangles/of vertices
F0 - vector of intrisic radiant exitance of triangles/of vertices
F0 - vector of intrinsic radiant exitance of triangles/of vertices
epsF - relative precision of radiosity
max_iter - maximal number of iterations
Output:
F1 - updated vector of intrisic radiant exitance of triangles/of vertices
F1 - updated vector of intrinsic radiant exitance of triangles/of vertices
Fout - vector of radiosity (intrinsic and reflection) of triangles/of vertices
Returns:
Expand Down Expand Up @@ -960,12 +960,12 @@ void solve_radiosity_equation_with_redistribution_Horvat(
Dmat - redistribution matrices
R - vector of albedo/reflection of triangles/of vertices
F0 - vector of intrisic radiant exitance of triangles/of vertices
F0 - vector of intrinsic radiant exitance of triangles/of vertices
epsF - relative precision of radiosity
max_iter - maximal number of iterations
Output:
F1 - updated vector of intrisic radiant exitance of triangles/of vertices
F1 - updated vector of intrinsic radiant exitance of triangles/of vertices
Fout - vector of radiosity (intrinsic and reflection) of triangles/of vertices
Returns:
Expand Down Expand Up @@ -1079,12 +1079,12 @@ bool solve_radiosity_equation_with_redistribution_Wilson_nbody(
Dmat - matrix of redistribution view factor
R - vector of albedo/reflection of triangles/of vertices
F0 - vector of intrisic radiant exitance of triangles/of vertices
F0 - vector of intrinsic radiant exitance of triangles/of vertices
epsF - relative precision of radiosity
max_iter - maximal number of iterations
Output:
F1 - updated vector of intrisic radiant exitance of triangles/of vertices
F1 - updated vector of intrinsic radiant exitance of triangles/of vertices
Fout - vector of radiosity (intrinsic and reflection) of triangles/of vertices
Returns:
Expand Down
2 changes: 1 addition & 1 deletion phoebe/lib/refinement.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/*
Perform a mid-edge (midpoint)/Loops subdivision of all triangles
and reproject onto surface along the normal field of implicitely
and reproject onto surface along the normal field of implicitly
defined body
Input:
Expand Down
20 changes: 10 additions & 10 deletions phoebe/lib/reflection.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool triangle_cuts_line(T n[3], T *v[3], T c1[3], T c2[3]){
if (t3 < 0 || t3 > 1) return false;

//
// Check if the point of intesection is in the triangle
// Check if the point of intersection is in the triangle
//

T a[3], b[3], c[3];
Expand Down Expand Up @@ -1476,7 +1476,7 @@ void triangle_mesh_radiosity_matrix_vertices_nbody_convex(
Input:
Fmat - matrix of view factor
R - vector of albedo/reflection of triangles/of vertices
M0 - vector of intrisic radiant exitance of triangles/of vertices
M0 - vector of intrinsic radiant exitance of triangles/of vertices
epsM - relative precision of radiosity
max_iter - maximal number of iterations
Expand Down Expand Up @@ -1569,8 +1569,8 @@ Solving the radiosity model proposed by M. Horvat for Phoebe 2b.
Input:
Fmat - matrix of view factor
R - vector of albedo/reflection of triangles/of vertices
F0 - vector of intrisic radiant exitance of triangles/of vertices
S0 - vector of LD reflected intrisic radiant exitance of triangles/of vertices
F0 - vector of intrinsic radiant exitance of triangles/of vertices
S0 - vector of LD reflected intrinsic radiant exitance of triangles/of vertices
epsF - relative precision of radiosity
max_iter - maximal number of iterations
Expand Down Expand Up @@ -1679,7 +1679,7 @@ bool solve_radiosity_equation_Horvat(
Input:
Fmat - matrix of view factor
R - vector of albedo/reflection of triangles/of vertices
F0 - vector of intrisic radiant exitance of triangles/of vertices
F0 - vector of intrinsic radiant exitance of triangles/of vertices
epsF - relative precision of radiosity
max_iter - maximal number of iterations
Expand Down Expand Up @@ -1734,7 +1734,7 @@ bool solve_radiosity_equation_Horvat(
Input:
Fmat - matrix of view factor for n-body formalism
R - vector of albedo/reflection of triangles/vertices
M0 - vector of intrisic radiant exitance of triangles/vertices
M0 - vector of intrinsic radiant exitance of triangles/vertices
epsM - relative precision of radiosity
max_iter - maximal number of iterations
Expand Down Expand Up @@ -1828,8 +1828,8 @@ bool solve_radiosity_equation_Wilson_nbody(
Input:
Fmat - matrix of view factor for n-body formalism
R - vector of albedo/reflection of triangles/vertices
F0 - vector of intrisic radiant exitance of triangles/vertices
S0 - vector o LD diffusion of intrisic radiant exitance of triangles/vertices
F0 - vector of intrinsic radiant exitance of triangles/vertices
S0 - vector o LD diffusion of intrinsic radiant exitance of triangles/vertices
epsF - relative precision of radiosity
max_iter - maximal number of iterations
Expand Down Expand Up @@ -1934,7 +1934,7 @@ bool solve_radiosity_equation_Horvat_nbody(
Input:
Fmat - matrix of view factor for n-body formalism
R - vector of albedo/reflection of triangles/vertices
F0 - vector of intrisic radiant exitance of triangles/vertices
F0 - vector of intrinsic radiant exitance of triangles/vertices
epsF - relative precision of radiosity
max_iter - maximal number of iterations
Expand All @@ -1955,7 +1955,7 @@ bool solve_radiosity_equation_Horvat_nbody(
const T & max_iter = 100) {

//
// calculate limb-darkened emission of intrisic radiant exitance
// calculate limb-darkened emission of intrinsic radiant exitance
// S0 = L_{LD} F0
//
int nb = F0.size();
Expand Down
2 changes: 1 addition & 1 deletion phoebe/lib/triang_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ void mesh_attributes(
}

/*
Offseting the mesh to match the reference area by moving vertices along the normals in vertices so that the total area matches its reference value.
Offsetting the mesh to match the reference area by moving vertices along the normals in vertices so that the total area matches its reference value.
Currently supporting only curvature independent.
Expand Down
4 changes: 2 additions & 2 deletions phoebe/lib/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ namespace utils {

} else {
//
// Working with a quadatic equation
// Working with a quadratic equation
// a[2] x^2 + a[1] x + a[0] = 0
//
solve_quadratic(a, roots);
Expand All @@ -751,7 +751,7 @@ namespace utils {
a[4] x^4 + a[3] x^3 + a[2] x^2 + a[1] x + a[0] = 0
Input:
a[5] -- cofficients of the polynomial
a[5] -- coefficients of the polynomial
Output:
roots -- vector of real roots sorted ascending order
Expand Down

0 comments on commit a9d25a1

Please sign in to comment.