← Back to team overview

yade-users team mailing list archive

Re: create a new engine (/common/engine/DeusMachina)

 

I think that's typically because you didn't modify the § concerning the 
preprocessor file in the "Sconscript". You have also to modify it by 
adding a line with the name of your new engine.

Jerome

Benjamin Fragneaud a écrit :
> Hi everybody,
> I'm trying to create an Engine that aplly Electrostatic force to a sphere.
> I´d like to allow displacement of bodies depending on the charge and  
> the electrical potential.
> Perhaps I should precise that I´m quiet new to Yade and C++ programmation.
>
> To do so, I decided to inspire myself with an already written  
> preprocesor: "funnel", which has been modified in order to generate a  
> random cloud of spheres in a closed box.
> At this step every thing is working as I want to.
>
> * Creation of a new stand alone Engine:
> As well as I did before, I used an already written engine and modified  
> it. But here is the problem.
> - I copy paste the GravityEngine.
> - rename it, rename the functions within and shrd_ptr,
> - I also rename the .hpp file
> - add it in the corresponding scons file
> It compiled well (no error) and was added to the libnewengine.so.
>
> In esance it should do exactly the same thing than the GravityEngine  
> but with a different name.
>
> Nevertheless, when I try to use it within my new preprocessor, it  
> doesn´t appear anymore in the preprocessor generator list (yade  
> graphique interface).
>
> Moreover, If I just declare it in the list of classes used withtout  
> using it (like declaring something that you don´t use), the  
> preprocessor also don´t appear in the preprocessor list...
> Is anybody has any idea about what is wrong.
> Thanks for your help,
> Best,
> Ben
>
>
> _______________________________________________
> Yade-users mailing list
> Yade-users@xxxxxxxxxxxxxxxx
> https://lists.berlios.de/mailman/listinfo/yade-users
>
>   
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users



Follow ups

References