Skip to content

Commit

Permalink
Sharing SAniSandMS with the world
Browse files Browse the repository at this point in the history
  • Loading branch information
jaabell committed Oct 22, 2021
1 parent d1c50b8 commit 8a2666c
Show file tree
Hide file tree
Showing 12 changed files with 3,714 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SRC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,9 @@ MATERIAL_LIBS = $(FE)/material/Material.o \
$(FE)/material/nD/UWmaterials/J2CyclicBoundingSurfacePlaneStrain.o \
$(FE)/material/nD/UWmaterials/PM4Sand.o \
$(FE)/material/nD/UWmaterials/PM4Silt.o \
$(FE)/material/nD/UANDESmaterials/SAniSandMS.o \
$(FE)/material/nD/UANDESmaterials/SAniSandMS3D.o \
$(FE)/material/nD/UANDESmaterials/SAniSandMSPlaneStrain.o \
$(FE)/material/nD/LinearCap.o \
$(FE)/material/nD/AcousticMedium.o \
$(FE)/material/nD/FeapMaterial.o \
Expand Down
1 change: 1 addition & 0 deletions SRC/Makefile.incl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ FE_INCLUDES = -I$(FE)/matrix \
-I$(FE)/material/nD/FiniteDeformation/fdEvolution \
-I$(FE)/material/nD/cyclicSoil \
-I$(FE)/material/nD/UWmaterials \
-I$(FE)/material/nD/UANDESmaterials \
-I$(FE)/material/nD/stressDensityModel \
-I$(FE)/material/section \
-I$(FE)/material/section/repres/cell \
Expand Down
3 changes: 3 additions & 0 deletions SRC/classTags.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@

#define ND_TAG_IncrementalElasticIsotropicThreeDimensional 7010 //Chile

#define ND_TAG_SAniSandMS 7011 //UANDES - Chile
#define ND_TAG_SAniSandMSPlaneStrain 7011 //UANDES - Chile
#define ND_TAG_SAniSandMS3D 7011 //UANDES - Chile


#define FIBER_TAG_Uniaxial2d 1
Expand Down
1 change: 1 addition & 0 deletions SRC/material/nD/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ all: $(OBJS)
@$(CD) $(FE)/material/nD/UWmaterials; $(MAKE);
@$(CD) $(FE)/material/nD/matCMM; $(MAKE);
@$(CD) $(FE)/material/nD/stressDensityModel; $(MAKE);
@$(CD) $(FE)/material/nD/UANDESmaterials; $(MAKE);

# Miscellaneous

Expand Down
10 changes: 10 additions & 0 deletions SRC/material/nD/TclModelBuilderNDMaterialCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ extern void *OPS_LinearCap(void);
extern void *OPS_AcousticMedium(void);
extern void* OPS_UVCmultiaxial(void);
extern void* OPS_UVCplanestress(void);
extern void *OPS_SAniSandMSMaterial(void);

extern void *OPS_ElasticIsotropicMaterialThermal(void); //L.Jiang [SIF]
extern void *OPS_DruckerPragerMaterialThermal(void);//L.Jiang [SIF]
Expand Down Expand Up @@ -573,6 +574,15 @@ TclModelBuilderNDMaterialCommand (ClientData clientData, Tcl_Interp *interp, int
return TCL_ERROR;
}

else if ((strcmp(argv[1],"SAniSandMS") == 0)){

void *theMat = OPS_SAniSandMSMaterial();
if (theMat != 0)
theMaterial = (NDMaterial *)theMat;
else
return TCL_ERROR;
}


else if (strcmp(argv[1],"PressureDependentElastic3D") == 0) {
if (argc < 6) {
Expand Down
24 changes: 24 additions & 0 deletions SRC/material/nD/UANDESmaterials/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
include ../../../../Makefile.def

OBJS = SAniSandMS.o\
SAniSandMS3D.o\
SAniSandMSPlaneStrain.o

all: $(OBJS)

# Miscellaneous

tidy:
@$(RM) $(RMFLAGS) Makefile.bak *~ #*# core

clean: tidy
@$(RM) $(RMFLAGS) $(OBJS) *.o

spotless: clean

wipe: spotless

# DO NOT DELETE THIS LINE -- make depend depends on it.



Loading

0 comments on commit 8a2666c

Please sign in to comment.