Hi Ruochun, Thank you for the help! In addition to the charges I need to calculate the potential and electric field in the force_model (to take advantage of CUDA): I was thinking of using geometric wildcards or is it better to use owner wildcards? I ask this because I didn't fully understand the owner wildcards' properties/functionalities.
Sabrina Il giorno mercoledì 25 settembre 2024 alle 05:27:08 UTC+2 Ruochun Zhang ha scritto: > Hi Sabrina, > > If you want to get a vector so you can directly use in your script, then > you can use *DEMTracker*'s method *GetGeometryWildcardValues *to get "Q". > Note that since "Q" is a geometric wildcard (associated with individual > spheres, triangle facets etc., but not a owner) and a tracker is tracking > *a* *owner*, this method only gets you the geometric wildcard values (can > be a vector of length more than 1, depending on the components this owner > has) associated with this owner. > > On the other hand, owner wildcard is probably more convenient to use, if > it fits your purpose. *DEMSolver*'s method *GetFamilyOwnerWildcardValue * > and *DEMTracker*'s method *GetOwnerWildcardValue *can easily help you get > the owner wildcard value. > > If you are fine with writing the wildcard values to a file, then in a > *SetOutputContent* call, you can enable "GEO_WILDCARD", so in a > subsequent *WriteSphereFile *call, "Q" will be written to the output > file. You can see an example of this (albeit it's about outputting an owner > wildcard) in *DEMdemo_Indentation.cpp*. > > Thank you! > Ruochun > > On Wednesday, September 25, 2024 at 12:15:00 AM UTC+8 [email protected] > wrote: > >> Hi, >> Is there a way to log the wildcards' values at each simulation instant? >> For example, log charges value "Q" in the Electrostatic example. >> >> Thanks in advance for your help! >> Sabrina > > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/7c2f3138-9d1b-471d-a818-099f059bb1can%40googlegroups.com.
