1#ifndef __ANALYTIC_CREATOR_HPP
2#define __ANALYTIC_CREATOR_HPP
4#include <grid/CartesianChart.hpp>
5#include <field/DirectProductArray.hpp>
7#include <field/AsynchronCreator.hpp>
8#include <bone/FishField.hpp>
10#include <eagle/PhysicalSpace.hpp>
11#include <bundle/FieldSelector.hpp>
19template <
class Formula>
22 typedef typename Formula::value_type value_type;
23 enum { FieldDims = Formula::Dims };
24 typedef typename Formula::point_type point_type;
26 typedef typename Formula::Parameters Param_t;
54 return typeid(value_type);
66 A->CacheInfoString =
"AnalyticCreator for T=" +
String( time );
73 const Eagle::point3&
Pt =
P[ M ];
75 Formula::eval( MyField[M],
Pt, time, Params);
84 return this->compute(
Stop);
99 FS.accept<value_type>();
103static bool set(
double time,
const Param_t&
P,
104 Grid&G,
const string&fieldname)
120 if (AC->isUnderCreation() )
129 myField->setCreator(
theAC );
A Creator object that generates its content on demand.
Definition AsynchronCreator.hpp:20
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Description of types, which is meta-information like what is the number of elements of some array-lik...
Definition FiberType.hpp:61
An internal class that stores a couple of textual names.
Definition FieldSelector.hpp:18
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
RefPtr< Field > CartesianPositions() const
Shortcut function: get the coordinates of the vertices in the default cartesian chart.
Definition Grid.cpp:156
Interface class to provide information about multidimensional arrays without need to create the data ...
Definition MemArrayProperties.hpp:28
bool hasData() const override
void addInterface(const RefPtr< InterfaceBase > &I) const
const auto & self() const
string String(const T &Val)
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
A Fiber Creator that computes a data array on request in a thread.
Definition AnalyticCreator.hpp:21
Definition fs/init.hpp:20