I’m trying to use LBM to calcualte eletric field bby means of modifying the code in the examples cylinder2d.
So I stille use the functions in the example cylinder2d to get Lattices’ Equilibrium and distribution function in my electric field construction program,however such functions’ parameter and definition should be changed to match electric field equation while the function’s name is always kept.
The problem is, I define a new function sLattice.iniEquilibrium(bulkIndicator,rhoF)to calculate the iniEquilibrium(the original function sLattice.iniEquilibrium(bulkIndicator,rhoF,uF)is still kept)but this function cannot be defined during make, as the follow shows:
undefined reference to `olb::Superlattice2D<double,olb::descriptors::D2Q9<>>::iniEquilibrium(olb::SuperIndicatorF2D<double>>&&,olb::AnalyticalF2D<double,double>&)’
So what is the problem?Please give me some advice to solve this problem.
If it needs to modify the makefile while I have done some modification on the header file and source file?
Thanks in advance and best regards!