v0.5.86
practicle_velocity.cpp
Go to the documentation of this file.
1 
2 
3 
4 PetscBool practicle_velocity = PETSC_FALSE;
5 ierr = PetscOptionsGetBool(PETSC_NULL,"-practicle_velocity",&practicle_velocity,NULL); CHKERRQ(ierr);
6 
7 
9 //Particle Velocity field, do not confused with speed of sound.
10 ierr = m_field.add_field("reVEL",H1,AINSWORTH_LEGENDRE_BASE,3); CHKERRQ(ierr);
11 ierr = m_field.add_field("imVEL",H1,AINSWORTH_LEGENDRE_BASE,3); CHKERRQ(ierr);
12 }
13 
14 
16 //Particle Velocity field, do not confused with speed of sound.
17 ierr = m_field.add_ents_to_field_by_type(root_set,MBTET,"reVEL"); CHKERRQ(ierr);
18 ierr = m_field.add_ents_to_field_by_type(root_set,MBTET,"imVEL"); CHKERRQ(ierr);
19 }
20 
21 
22 
24 //Particle Velocity field, do not confused with speed of sound.
25 ierr = m_field.set_field_order(root_set,MBTET,"reVEL",order); CHKERRQ(ierr);
26 ierr = m_field.set_field_order(root_set,MBTRI,"reVEL",order); CHKERRQ(ierr);
27 ierr = m_field.set_field_order(root_set,MBEDGE,"reVEL",order); CHKERRQ(ierr);
28 ierr = m_field.set_field_order(root_set,MBVERTEX,"reVEL",1); CHKERRQ(ierr);
29 ierr = m_field.set_field_order(root_set,MBTET,"imVEL",order); CHKERRQ(ierr);
30 ierr = m_field.set_field_order(root_set,MBTRI,"imVEL",order); CHKERRQ(ierr);
31 ierr = m_field.set_field_order(root_set,MBEDGE,"imVEL",order); CHKERRQ(ierr);
32 ierr = m_field.set_field_order(root_set,MBVERTEX,"imVEL",1); CHKERRQ(ierr);
33 }
PetscBool practicle_velocity
CHKERRQ(ierr)
Ainsworth Cole (Legendre) approx. base .
Definition: definitions.h:125
continuous field
Definition: definitions.h:159
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)