Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
TurTLE
TurTLE
Merge requests
!16
Add a lagrange file wrapper for the particles system
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add a lagrange file wrapper for the particles system
feature/add-lagrange-particles
into
develop
Overview
8
Commits
3
Pipelines
0
Changes
2
Merged
Berenger Bramas
requested to merge
feature/add-lagrange-particles
into
develop
8 years ago
Overview
8
Commits
3
Pipelines
0
Changes
2
Expand
We should be able to use lagrange or spline as interpolator for the particles.
0
0
Merge request reports
Compare
develop
version 2
351930f0
8 years ago
version 1
8b9a4488
8 years ago
develop (base)
and
version 1
latest version
15cc4028
3 commits,
8 years ago
version 2
351930f0
2 commits,
8 years ago
version 1
8b9a4488
1 commit,
8 years ago
2 files
+
92
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
bfps/cpp/particles/particles_interp_lagrange.hpp
0 → 100644
+
90
−
0
Options
#ifndef PARTICLES_INTER_SPLINE_HPP
#define PARTICLES_INTER_SPLINE_HPP
template
<
class
real_number
,
int
interp_neighbours
>
class
particles_interp_lagrange
;
#include
"Lagrange_polys.hpp"
template
<
>
class
particles_interp_lagrange
<
double
,
1
>
{
public:
using
real_number
=
double
;
void
compute_beta
(
const
int
in_derivative
,
const
double
in_part_val
,
double
poly_val
[])
const
{
beta_Lagrange_n1
(
in_derivative
,
in_part_val
,
poly_val
);
}
};
template
<
>
class
particles_interp_lagrange
<
double
,
2
>
{
public:
using
real_number
=
double
;
void
compute_beta
(
const
int
in_derivative
,
const
double
in_part_val
,
double
poly_val
[])
const
{
beta_Lagrange_n2
(
in_derivative
,
in_part_val
,
poly_val
);
}
};
template
<
>
class
particles_interp_lagrange
<
double
,
3
>
{
public:
using
real_number
=
double
;
void
compute_beta
(
const
int
in_derivative
,
const
double
in_part_val
,
double
poly_val
[])
const
{
beta_Lagrange_n3
(
in_derivative
,
in_part_val
,
poly_val
);
}
};
template
<
>
class
particles_interp_lagrange
<
double
,
4
>
{
public:
using
real_number
=
double
;
void
compute_beta
(
const
int
in_derivative
,
const
double
in_part_val
,
double
poly_val
[])
const
{
beta_Lagrange_n4
(
in_derivative
,
in_part_val
,
poly_val
);
}
};
template
<
>
class
particles_interp_lagrange
<
double
,
5
>
{
public:
using
real_number
=
double
;
void
compute_beta
(
const
int
in_derivative
,
const
double
in_part_val
,
double
poly_val
[])
const
{
beta_Lagrange_n5
(
in_derivative
,
in_part_val
,
poly_val
);
}
};
template
<
>
class
particles_interp_lagrange
<
double
,
6
>
{
public:
using
real_number
=
double
;
void
compute_beta
(
const
int
in_derivative
,
const
double
in_part_val
,
double
poly_val
[])
const
{
beta_Lagrange_n6
(
in_derivative
,
in_part_val
,
poly_val
);
}
};
template
<
>
class
particles_interp_lagrange
<
double
,
7
>
{
public:
using
real_number
=
double
;
void
compute_beta
(
const
int
in_derivative
,
const
double
in_part_val
,
double
poly_val
[])
const
{
beta_Lagrange_n7
(
in_derivative
,
in_part_val
,
poly_val
);
}
};
template
<
>
class
particles_interp_lagrange
<
double
,
8
>
{
public:
using
real_number
=
double
;
void
compute_beta
(
const
int
in_derivative
,
const
double
in_part_val
,
double
poly_val
[])
const
{
beta_Lagrange_n8
(
in_derivative
,
in_part_val
,
poly_val
);
}
};
#endif
Loading