vtk files are now correctly written to current working directory.
updated Lib_VTK_IO.f90
This commit is contained in:
parent
2d4cb6d128
commit
755e0e2440
|
@ -1232,10 +1232,14 @@ pure function math_Voigt66to3333(m66)
|
|||
integer(pInt) :: i,j
|
||||
|
||||
forall (i=1_pInt:6_pInt,j=1_pInt:6_pInt)
|
||||
math_Voigt66to3333(mapVoigt(1,i),mapVoigt(2,i),mapVoigt(1,j),mapVoigt(2,j)) = invnrmVoigt(i)*invnrmVoigt(j)*m66(i,j)
|
||||
math_Voigt66to3333(mapVoigt(2,i),mapVoigt(1,i),mapVoigt(1,j),mapVoigt(2,j)) = invnrmVoigt(i)*invnrmVoigt(j)*m66(i,j)
|
||||
math_Voigt66to3333(mapVoigt(1,i),mapVoigt(2,i),mapVoigt(2,j),mapVoigt(1,j)) = invnrmVoigt(i)*invnrmVoigt(j)*m66(i,j)
|
||||
math_Voigt66to3333(mapVoigt(2,i),mapVoigt(1,i),mapVoigt(2,j),mapVoigt(1,j)) = invnrmVoigt(i)*invnrmVoigt(j)*m66(i,j)
|
||||
math_Voigt66to3333(mapVoigt(1,i),mapVoigt(2,i),mapVoigt(1,j),mapVoigt(2,j)) = &
|
||||
invnrmVoigt(i)*invnrmVoigt(j)*m66(i,j)
|
||||
math_Voigt66to3333(mapVoigt(2,i),mapVoigt(1,i),mapVoigt(1,j),mapVoigt(2,j)) = &
|
||||
invnrmVoigt(i)*invnrmVoigt(j)*m66(i,j)
|
||||
math_Voigt66to3333(mapVoigt(1,i),mapVoigt(2,i),mapVoigt(2,j),mapVoigt(1,j)) = &
|
||||
invnrmVoigt(i)*invnrmVoigt(j)*m66(i,j)
|
||||
math_Voigt66to3333(mapVoigt(2,i),mapVoigt(1,i),mapVoigt(2,j),mapVoigt(1,j)) = &
|
||||
invnrmVoigt(i)*invnrmVoigt(j)*m66(i,j)
|
||||
end forall
|
||||
|
||||
end function math_Voigt66to3333
|
||||
|
@ -1251,10 +1255,10 @@ function math_qRand()
|
|||
real(pReal), dimension(3) :: rnd
|
||||
|
||||
call halton(3_pInt,rnd)
|
||||
math_qRand(1) = cos(2.0_pReal*pi*rnd(1))*sqrt(rnd(3))
|
||||
math_qRand(2) = sin(2.0_pReal*pi*rnd(2))*sqrt(1.0_pReal-rnd(3))
|
||||
math_qRand(3) = cos(2.0_pReal*pi*rnd(2))*sqrt(1.0_pReal-rnd(3))
|
||||
math_qRand(4) = sin(2.0_pReal*pi*rnd(1))*sqrt(rnd(3))
|
||||
math_qRand(1) = cos(2.0_pReal*PI*rnd(1))*sqrt(rnd(3))
|
||||
math_qRand(2) = sin(2.0_pReal*PI*rnd(2))*sqrt(1.0_pReal-rnd(3))
|
||||
math_qRand(3) = cos(2.0_pReal*PI*rnd(2))*sqrt(1.0_pReal-rnd(3))
|
||||
math_qRand(4) = sin(2.0_pReal*PI*rnd(1))*sqrt(rnd(3))
|
||||
|
||||
end function math_qRand
|
||||
|
||||
|
|
|
@ -5089,7 +5089,8 @@ end subroutine mesh_build_FEdata
|
|||
!--------------------------------------------------------------------------------------------------
|
||||
subroutine mesh_write_cellGeom
|
||||
use DAMASK_interface, only: &
|
||||
getSolverJobName
|
||||
getSolverJobName, &
|
||||
getSolverWorkingDirectoryName
|
||||
use Lib_VTK_IO, only: &
|
||||
VTK_ini, &
|
||||
VTK_geo, &
|
||||
|
@ -5116,16 +5117,16 @@ subroutine mesh_write_cellGeom
|
|||
enddo
|
||||
|
||||
err = VTK_ini(output_format = 'ASCII', &
|
||||
title=trim(getSolverJobName())//' cell mesh', &
|
||||
filename = trim(getSolverJobName())//'_ipbased.vtk', &
|
||||
mesh_topology = 'UNSTRUCTURED_GRID')
|
||||
title=trim(getSolverJobName())//' cell mesh', &
|
||||
filename = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'_ipbased.vtk', &
|
||||
mesh_topology = 'UNSTRUCTURED_GRID')
|
||||
err = VTK_geo(NN = mesh_Ncellnodes, &
|
||||
X = mesh_cellnode(1,:), &
|
||||
Y = mesh_cellnode(2,:), &
|
||||
Z = mesh_cellnode(3,:))
|
||||
X = mesh_cellnode(1,:), &
|
||||
Y = mesh_cellnode(2,:), &
|
||||
Z = mesh_cellnode(3,:))
|
||||
err = VTK_con(NC = mesh_Ncells, &
|
||||
connect = cellconnection(1:j), &
|
||||
cell_type = celltype)
|
||||
connect = cellconnection(1:j), &
|
||||
cell_type = celltype)
|
||||
err = VTK_end()
|
||||
|
||||
end subroutine mesh_write_cellGeom
|
||||
|
@ -5136,7 +5137,8 @@ end subroutine mesh_write_cellGeom
|
|||
!--------------------------------------------------------------------------------------------------
|
||||
subroutine mesh_write_elemGeom
|
||||
use DAMASK_interface, only: &
|
||||
getSolverJobName
|
||||
getSolverJobName, &
|
||||
getSolverWorkingDirectoryName
|
||||
use Lib_VTK_IO, only: &
|
||||
VTK_ini, &
|
||||
VTK_geo, &
|
||||
|
@ -5160,16 +5162,16 @@ subroutine mesh_write_elemGeom
|
|||
enddo
|
||||
|
||||
err = VTK_ini(output_format = 'ASCII', &
|
||||
title=trim(getSolverJobName())//' element mesh', &
|
||||
filename = trim(getSolverJobName())//'_nodebased.vtk', &
|
||||
mesh_topology = 'UNSTRUCTURED_GRID')
|
||||
title=trim(getSolverJobName())//' element mesh', &
|
||||
filename = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName()//'_nodebased.vtk', &
|
||||
mesh_topology = 'UNSTRUCTURED_GRID')
|
||||
err = VTK_geo(NN = mesh_Nnodes, &
|
||||
X = mesh_node0(1,1:mesh_Nnodes), &
|
||||
Y = mesh_node0(2,1:mesh_Nnodes), &
|
||||
Z = mesh_node0(3,1:mesh_Nnodes))
|
||||
X = mesh_node0(1,1:mesh_Nnodes), &
|
||||
Y = mesh_node0(2,1:mesh_Nnodes), &
|
||||
Z = mesh_node0(3,1:mesh_Nnodes))
|
||||
err = VTK_con(NC = mesh_Nelems, &
|
||||
connect = elementconnection(1:i), &
|
||||
cell_type = elemtype)
|
||||
connect = elementconnection(1:i), &
|
||||
cell_type = elemtype)
|
||||
err = VTK_end()
|
||||
|
||||
end subroutine mesh_write_elemGeom
|
||||
|
|
2241
lib/Lib_VTK_IO.f90
2241
lib/Lib_VTK_IO.f90
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue