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/844bac96-79c2-447e-a105-ece329749eden%40googlegroups.com.
