Hi,
I would like to add a time dependent ExternalForce in the multicomponent code in palabos-0.6r2. (I know there is a new version, but I am sorry what I used is the old version.) I found an opption about set External Force in the core/dynamic.hh file. But I didnot used it successfully. Please give me a help. The command I used to set the time-dependent external force is as below
int main(int argc, char *argv[])
{
plbInit(&argc, &argv);
global::directories().setOutputDir("./tmp/");
.........
// Main loop over time iterations.
for (int iT=0; iT<maxIter; ++iT) {
if (iT > 20){
Array<T,2> externalforce (0.,0.001);
setExternalField (insideFluid, Box2D(0, nx-1, 0, ny-1), 1, &externalforce[0]);
}
the error message is
rayleighTaylor2D.cpp:322: error: `setExternalField’ undeclared (first use this function)
How to deal with this problem? I really appreciate for your help! By the way what is the meaning of size in
void Dynamics<T,Descriptor>::setExternalField (
Cell<T,Descriptor>& cell, plint pos, plint size, const T* ext)
Thank you in advance.