#include <ocean/shrimp/TimeDependent.hpp>
#include <bundle/Bundle.hpp>
#include <bone/BundleInput.hpp>
#include <grid/CartesianChart.hpp>
#include <eagle/PhysicalSpace.hpp>
#include <bone/GridObject.hpp>
#include <grid/types/LineSet.hpp>
#include <bone/FishSaver.hpp>
#include <field/ArrayRef.hpp>
#include <eagle/rotor3.hpp>
namespace
{
{
public:
{
{for(index_t j=0; j<NumberOfLines; j++)
{
double omega = 1.0/40.0*(j+0.5);
C = 0.04/(time*time+.2);
double Scale = 1.0 / 20.0;
z = C*(i+j) *Scale - 0.5;
ddTUz = 3./4 * C *E*E /
pow(D, 5./2) - 1./2 * C * F /
pow(D, 3./2);
0};
{
V = 0.5+0.5*(
sin(V*3.141592*(1+4*N) ));
}
}}
{for(index_t j=0; j<NumberOfLines; j++)
{
{
}
}}
(*
theLines.CartesianVertices)[ LineSet::PredefinedFieldNames::Velocity ]->setPersistentData(
Velocity );
(*
theLines.CartesianVertices)[
"Analytic Normals" ]->setPersistentData(
Normals );
(*
theLines.CartesianVertices)[
"Analytic GATorsion" ]->setPersistentData(
TorsionGA );
(*
theLines.CartesianVertices)[
"Analytic dT_ds" ]->setPersistentData(
dT_ds );
theLines.setupStandardFields(G.self() );
}
, LineGrid( this, "grid")
, tsNumberOfLines(this, "NumberOfLines", 4, 0)
, TimeSteps( this, "timesteps", 30,2)
, TMax(this, "tmax", 2.0, 1)
{
}
{
#define gridname "helicalgrid"
int NumberOfLines = 4;
{
Grid&G =
B[ time ][ gridname ];
}
return true;
}
};
}
namespace
{
Url(
"http://ahm.co.at/wiki/en" ),
ObjectQuality::EXPERIMENTAL );
}
complex< _Tp > sin(const complex< _Tp > &)
complex< _Tp > pow(const _Tp &, const complex< _Tp > &)
complex< _Tp > cos(const complex< _Tp > &)
complex< _Tp > sqrt(const complex< _Tp > &)
constexpr void resize(size_type __new_size)
Convenience class that implements a pointer to a Bundle object but adds some useful member funtions t...
Definition Bundle.hpp:779
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Context information to select a grid from within a bundle.
Definition GridSelector.hpp:26
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
A set of lines stored on a Grid.
Definition LineSet.hpp:55
Convenience class for objects that provide a Grid that may be saved.
Definition FishSaver.hpp:127
bool setProperty(const string &theName, const Type &theValue) const
vector dot(const bivector &a, const vector &b)
double norm2(const PhysicalSpace::bivector &v)
double norm(const PhysicalSpace::bivector &v)
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...
Store the velocity of curve, which determines its parameterization.
Definition CurveOperators.hpp:140