FEDEM Solver  R8.0
Source code of the dynamics solver
Functions
FFa3PArc.C File Reference

Circular arcs in 3D space. More...

#include "FFaLib/FFaAlgebra/FFa3PArc.H"
#include "FFaLib/FFaAlgebra/FFaMat34.H"
Include dependency graph for FFa3PArc.C:

Functions

static FaVec3 findArcCenter (const FaVec3 &P1, FaVec3 P1C, const FaVec3 &P2, FaVec3 P2C)
 Static helper to calculate the center point of the arc. More...
 

Detailed Description

Circular arcs in 3D space.

Function Documentation

◆ findArcCenter()

static FaVec3 findArcCenter ( const FaVec3 P1,
FaVec3  P1C,
const FaVec3 P2,
FaVec3  P2C 
)
static

Static helper to calculate the center point of the arc.

Finds the center of a circle based on two points on circle and vectors twowards centre at the two locations.

This is done based on equations:

P1 + a*P1C = C
P2 + b*P2C = C
real(sp), dimension(:,:,:), pointer b
Definition: diffractionModule.f90:22
real(sp), dimension(:,:,:), pointer a
Definition: diffractionModule.f90:21

Using x and y component equations as 4 equations with 4 unknowns.