Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
ebe1bda4
Commit
ebe1bda4
authored
15 years ago
by
Andrew Heather
Browse files
Options
Downloads
Patches
Plain Diff
cosmetics
parent
ef350447
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/global/constants/math/mathematicalConstants.H
+15
-11
15 additions, 11 deletions
src/OpenFOAM/global/constants/math/mathematicalConstants.H
with
15 additions
and
11 deletions
src/OpenFOAM/global/constants/math/mathematicalConstants.H
+
15
−
11
View file @
ebe1bda4
...
@@ -58,17 +58,21 @@ namespace mathematical
...
@@ -58,17 +58,21 @@ namespace mathematical
}
// End namespace mathematical
}
// End namespace mathematical
}
// End namespace constant
}
// End namespace constant
//- Conversion from degrees to radians
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
inline
scalar
degToRad
(
const
scalar
&
deg
)
{
//- Conversion from degrees to radians
return
(
deg
*
constant
::
mathematical
::
pi
/
180.0
);
inline
scalar
degToRad
(
const
scalar
&
deg
)
}
{
return
(
deg
*
constant
::
mathematical
::
pi
/
180.0
);
//- Conversion from radians to degrees
}
inline
scalar
radToDeg
(
const
scalar
&
rad
)
{
//- Conversion from radians to degrees
return
(
rad
*
180.0
/
constant
::
mathematical
::
pi
);
inline
scalar
radToDeg
(
const
scalar
&
rad
)
}
{
return
(
rad
*
180.0
/
constant
::
mathematical
::
pi
);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
}
// End namespace Foam
}
// End namespace Foam
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment