1. view.h, line 22:
* *tx*, *ty*: shifts the camera center point.
2. pid() - most likely the process id of current process (in context of MPI, of course).
3. npe() - most likely the total number of processes in a parallel run.
best
w
On Tue, Nov 27, 2018 at 04:53:38AM -0800, nader nekoubin wrote:
> hello all,
>
> I am working with two-phase.h, and I am trying to understand the example
> about pulsed liquid jet. However, I cannot understand the following
> commands.
>
> scalar pid[];
> foreach <
http://basilisk.fr/Basilisk%20C#iterators>()
> pid[] = fmod(pid()*(npe() + 37), npe());
> boundary <
http://basilisk.fr/Basilisk%20C#boundary-conditions> ({pid}); // not used for the moment
> view <
http://basilisk.fr/src/draw.h#view> (camera = "iso",
> fov = 14.5, tx = -0.418, ty = 0.288,
> width = 1600, height <
http://basilisk.fr/src/heights.h#height> = 1200);
> clear <
http://basilisk.fr/src/draw.h#clear>();
> draw_vof <
http://basilisk.fr/src/draw.h#draw_vof> ("f");#endif // 3D
> save <
http://basilisk.fr/src/view.h#save> ("movie.mp4");
> }
>
>
> event <
http://basilisk.fr/Basilisk%20C#events> snapshot (t = 0.1; t += 0.1; t <= 3.8) {
> char name[80];
> sprintf <
http://man7.org/linux/man-pages/man3/sprintf.3.html> (name, "snapshot-%g", t);
> scalar pid[];
> foreach <
http://basilisk.fr/Basilisk%20C#iterators>()
> pid[] = fmod(pid()*(npe() + 37), npe());
> boundary <
http://basilisk.fr/Basilisk%20C#boundary-conditions> ({pid});
> dump <
http://basilisk.fr/src/output.h#dump> (name);
> }
>
> What is the meaning of pid and npe in the above commands? Also, what is the meaning of tx, ty and fov? How do they
> arrange the camera in view?
> Please guide me in this regard,
>
> Best regards,
> Nader
>
> --
> You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
basilisk-fr...@googlegroups.com.
> To post to this group, send email to
basil...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/basilisk-fr/4e1e0ae4-b79b-4ed5-a5a1-031eb44dacc2%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
/^..^\ Wojciech (Wojtek) ANISZEWSKI ► Post-doctoral Researcher
( (••) ) [Fr: vôitek anichévsky] ► Sorbonne University
(|)_._(|)~ [Eng: voyteck aanishevsky] ► Institut ∂'Alembert
GPG key ► Web [English]
https://tinyurl.com/y73t4xsg [old! 2015]
ID:AC66485E ► [Polish ]
https://tinyurl.com/yckark7n [old! 2014]