Re: Uploading data
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Uploading data › Re: Uploading data
vti is a vtk format (see https://www.vtk.org/ ) for more information. There are Phyton interfaces which are quite nice. Within OpenLB you use already implemented interfaces for setting external field like forces:
/// Define an external field on a domain described by an indicator
/**
* \param indicator Indicator describing the target domain
* \param fieldBeginsAt Field offset
* \param sizeOfField Target dimension of field functor
* \param field Analytical functor
**/
void defineExternalField(FunctorPtr<SuperIndicatorF3D<T>>&& indicator,
int fieldBeginsAt, int sizeOfField, AnalyticalF3D<T,T>& field);
/// Define an external field on a domain with a particular material number
void defineExternalField(SuperGeometry3D<T>& sGeometry, int material,
int fieldBeginsAt, int sizeOfField, AnalyticalF3D<T,T>& field);
/// Define an external field on a Indicator domain
/**
* \param indicatorF Domain indicator to be reduced
**/
void defineExternalField(SuperGeometry3D<T>& sGeometry, IndicatorF3D<T>& indicatorF,
int fieldBeginsAt, int sizeOfField, AnalyticalF3D<T,T>& field);
/// Define an external field on a domain with a particular material number
void defineExternalField(SuperGeometry3D<T>& sGeometry, int material,
int fieldBeginsAt, int sizeOfField, SuperF3D<T,T>& field);
Please, have a look into the dogyget documentation which helps a loot finding the right interfaces.
Best
Mathias